Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | ||
11 | {if $context EQ 'Search'} | |
12 | {include file="CRM/common/pager.tpl" location="top"} | |
13 | {/if} | |
14 | ||
15 | {strip} | |
16850d34 | 16 | <table class="selector row-highlight"> |
735d9ea4 SL |
17 | <thead> |
18 | <tr class="sticky"> | |
19 | {if !$single and $context eq 'Search' } | |
20 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> | |
21 | {/if} | |
22 | {foreach from=$columnHeaders item=header} | |
23 | <th scope="col"> | |
24 | {if $header.sort} | |
25 | {assign var='key' value=$header.sort} | |
26 | {$sort->_response.$key.link} | |
27 | {else} | |
28 | {$header.name} | |
29 | {/if} | |
30 | </th> | |
31 | {/foreach} | |
32 | </tr> | |
33 | </thead> | |
6a488035 TO |
34 | |
35 | ||
36 | {counter start=0 skip=1 print=false} | |
37 | {foreach from=$rows item=row} | |
38 | <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}"> | |
39 | {if !$single } | |
40 | {if $context eq 'Search' } | |
41 | {assign var=cbName value=$row.checkbox} | |
42 | <td>{$form.$cbName.html}</td> | |
43 | {/if} | |
44 | ||
45 | {/if} | |
46 | ||
d8786c71 | 47 | <td> |
48 | {$row.activity_type} | |
49 | {if $row.repeat} | |
50 | <br/> | |
51 | <span><b>{$row.repeat}</b></span> | |
52 | {/if} | |
53 | </td> | |
6a488035 TO |
54 | |
55 | <td>{$row.activity_subject}</td> | |
56 | ||
57 | <td> | |
58 | {if !$row.source_contact_id} | |
59 | <em>n/a</em> | |
60 | {elseif $contactId NEQ $row.source_contact_id} | |
61 | <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a> | |
62 | {else} | |
63 | {$row.source_contact_name} | |
64 | {/if} | |
65 | </td> | |
66 | ||
67 | <td> | |
68 | {if $row.mailingId} | |
69 | <a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a> | |
70 | {elseif $row.recipients} | |
71 | {$row.recipients} | |
72 | {elseif !$row.target_contact_name} | |
73 | <em>n/a</em> | |
74 | {elseif $row.target_contact_name} | |
75 | {assign var="showTarget" value=0} | |
76 | {foreach from=$row.target_contact_name item=targetName key=targetID} | |
77 | {if $showTarget < 5} | |
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} | |
80 | {/if} | |
81 | {/foreach} | |
82 | {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if} | |
83 | {/if} | |
84 | </td> | |
85 | ||
86 | <td> | |
87 | {if !$row.assignee_contact_name} | |
88 | <em>n/a</em> | |
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} | |
95 | {/if} | |
96 | {/foreach} | |
97 | {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if} | |
98 | {/if} | |
99 | </td> | |
100 | ||
101 | <td>{$row.activity_date_time|crmDate}</td> | |
102 | ||
103 | <td>{$row.activity_status}</td> | |
104 | ||
105 | <td>{$row.action|replace:'xx':$row.id}</td> | |
106 | </tr> | |
107 | {/foreach} | |
108 | ||
109 | </table> | |
110 | {/strip} | |
111 | {include file="CRM/Case/Form/ActivityToCase.tpl"} | |
112 | ||
113 | ||
6a488035 TO |
114 | {if $context EQ 'Search'} |
115 | {include file="CRM/common/pager.tpl" location="bottom"} | |
116 | {/if} |