2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {include file="CRM/common/pager.tpl" location="top"}
12 <table class="caseSelector row-highlight">
13 <tr class="columnheader">
15 {if ! $single and $context eq 'Search' }
16 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
21 {foreach from=$columnHeaders item=header}
24 {assign var='key' value=$header.sort}
25 {$sort->_response.$key.link}
33 {counter start=0 skip=1 print=false}
34 {foreach from=$rows item=row}
36 <tr id='rowid{$list}{$row.case_id}' class="{cycle values="odd-row,even-row"} crm-case crm-case-status_{$row.case_status_id} crm-case-type_{$row.case_type_id}">
37 {if $context eq 'Search' && !$single}
38 {assign var=cbName value=$row.checkbox}
39 <td>{$form.$cbName.html}</td>
41 <td class="crm-case-id crm-case-id_{$row.case_id}">
42 <a title="{ts}Activities{/ts}" class="crm-expand-row" href="{crmURL p='civicrm/case/details' q="caseId=`$row.case_id`&cid=`$row.contact_id`"}"></a>
46 <td class="crm-case-id crm-case-id_{$row.case_id}"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}" title="{ts}View Contact Details{/ts}">{$row.sort_name}</a>{if $row.phone}<br /><span class="description">{$row.phone}</span>{/if}<br /><span class="description">{ts}Case ID{/ts}: {$row.case_id}</span></td>
49 <td class="crm-case-subject">{$row.case_subject}</td>
50 <td class="{$row.class} crm-case-status_{$row.case_status}">{$row.case_status}</td>
51 <td class="crm-case-case_type">{$row.case_type}</td>
52 <td class="crm-case-case_role">{if $row.case_role}{$row.case_role}{else}---{/if}</td>
53 <td class="crm-case-case_manager">{$row.casemanager}</td>
54 <td class="crm-case-case_recent_activity_type">{if $row.case_recent_activity_type}
55 {$row.case_recent_activity_type}<br />{$row.case_recent_activity_date|crmDate}{else}---{/if}</td>
56 <td class="crm-case-case_scheduled_activity_type">{if $row.case_scheduled_activity_type}
57 {$row.case_scheduled_activity_type}<br />{$row.case_scheduled_activity_date|crmDate}{else}---{/if}</td>
58 <td>{$row.action|replace:'xx':$row.case_id}{$row.moreActions|replace:'xx':$row.case_id}</td>
61 {* Dashboard only lists 10 most recent cases. *}
62 {if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit }
64 <td colspan="10"><a href="{crmURL p='civicrm/case/search' q='reset=1'}"><i class="crm-i fa-chevron-right"></i> {ts}Find more cases{/ts}... </a></td>
71 {include file="CRM/common/pager.tpl" location="bottom"}
72 {crmScript file='js/crm.expandRow.js'}