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 +--------------------------------------------------------------------+
11 {if $context EQ 'Search'}
12 {include file="CRM/common/pager.tpl" location="top"}
16 <table class="selector row-highlight">
17 <thead class="sticky">
19 {if !$single and $context eq 'Search' }
20 <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
22 {foreach from=$columnHeaders item=header}
24 {if isset($header.sort)}
25 {assign var='key' value=$header.sort}
27 {$sort->_response.$key.link}
29 {elseif isset($header.name)}
38 {counter start=0 skip=1 print=false}
39 {foreach from=$rows item=row}
40 <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
42 {if $context eq 'Search' }
43 {assign var=cbName value=$row.checkbox}
44 <td>{$form.$cbName.html}</td>
53 <span><b>{$row.repeat}</b></span>
57 <td>{if isset($row.activity_subject)}{$row.activity_subject|purify}{/if}</td>
60 {if !$row.source_contact_id}
63 <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name|purify}</a>
69 <a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
70 {elseif isset($row.recipients)}
72 {elseif !$row.target_contact_name}
74 {elseif $row.target_contact_name}
75 {assign var="showTarget" value=0}
76 {foreach from=$row.target_contact_name item=targetName key=targetID}
78 {if $showTarget}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
79 {assign var="showTarget" value=$showTarget+1}
82 {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if}
87 {if !$row.assignee_contact_name}
89 {elseif $row.assignee_contact_name}
90 {assign var="showAssignee" value=0}
91 {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
92 {if $showAssignee < 5}
93 {if $showAssignee}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
94 {assign var="showAssignee" value=$showAssignee+1}
97 {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
101 <td>{$row.activity_date_time|crmDate}</td>
103 <td>{$row.activity_status}</td>
106 {if (!empty($row.id))}
107 {$row.action|replace:'xx':$row.id}
118 {include file="CRM/Case/Form/ActivityToCase.tpl"}
121 {if $context EQ 'Search'}
122 {include file="CRM/common/pager.tpl" location="bottom"}