Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | ||
27 | {if $context EQ 'Search'} | |
28 | {include file="CRM/common/pager.tpl" location="top"} | |
29 | {/if} | |
30 | ||
31 | {strip} | |
16850d34 | 32 | <table class="selector row-highlight"> |
6a488035 TO |
33 | <tr class="sticky"> |
34 | {if !$single and $context eq 'Search' } | |
35 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> | |
36 | {/if} | |
37 | {foreach from=$columnHeaders item=header} | |
38 | <th scope="col"> | |
39 | {if $header.sort} | |
40 | {assign var='key' value=$header.sort} | |
41 | {$sort->_response.$key.link} | |
42 | {else} | |
43 | {$header.name} | |
44 | {/if} | |
45 | </th> | |
46 | {/foreach} | |
47 | </tr> | |
48 | ||
49 | ||
50 | {counter start=0 skip=1 print=false} | |
51 | {foreach from=$rows item=row} | |
52 | <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}"> | |
53 | {if !$single } | |
54 | {if $context eq 'Search' } | |
55 | {assign var=cbName value=$row.checkbox} | |
56 | <td>{$form.$cbName.html}</td> | |
57 | {/if} | |
58 | ||
59 | {/if} | |
60 | ||
d8786c71 | 61 | <td> |
62 | {$row.activity_type} | |
63 | {if $row.repeat} | |
64 | <br/> | |
65 | <span><b>{$row.repeat}</b></span> | |
66 | {/if} | |
67 | </td> | |
6a488035 TO |
68 | |
69 | <td>{$row.activity_subject}</td> | |
70 | ||
71 | <td> | |
72 | {if !$row.source_contact_id} | |
73 | <em>n/a</em> | |
74 | {elseif $contactId NEQ $row.source_contact_id} | |
75 | <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> | |
76 | {else} | |
77 | {$row.source_contact_name} | |
78 | {/if} | |
79 | </td> | |
80 | ||
81 | <td> | |
82 | {if $row.mailingId} | |
83 | <a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a> | |
84 | {elseif $row.recipients} | |
85 | {$row.recipients} | |
86 | {elseif !$row.target_contact_name} | |
87 | <em>n/a</em> | |
88 | {elseif $row.target_contact_name} | |
89 | {assign var="showTarget" value=0} | |
90 | {foreach from=$row.target_contact_name item=targetName key=targetID} | |
91 | {if $showTarget < 5} | |
92 | {if $showTarget}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a> | |
93 | {assign var="showTarget" value=$showTarget+1} | |
94 | {/if} | |
95 | {/foreach} | |
96 | {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if} | |
97 | {/if} | |
98 | </td> | |
99 | ||
100 | <td> | |
101 | {if !$row.assignee_contact_name} | |
102 | <em>n/a</em> | |
103 | {elseif $row.assignee_contact_name} | |
104 | {assign var="showAssignee" value=0} | |
105 | {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID} | |
106 | {if $showAssignee < 5} | |
107 | {if $showAssignee}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a> | |
108 | {assign var="showAssignee" value=$showAssignee+1} | |
109 | {/if} | |
110 | {/foreach} | |
111 | {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if} | |
112 | {/if} | |
113 | </td> | |
114 | ||
115 | <td>{$row.activity_date_time|crmDate}</td> | |
116 | ||
117 | <td>{$row.activity_status}</td> | |
118 | ||
119 | <td>{$row.action|replace:'xx':$row.id}</td> | |
120 | </tr> | |
121 | {/foreach} | |
122 | ||
123 | </table> | |
124 | {/strip} | |
125 | {include file="CRM/Case/Form/ActivityToCase.tpl"} | |
126 | ||
127 | ||
6a488035 TO |
128 | {if $context EQ 'Search'} |
129 | {include file="CRM/common/pager.tpl" location="bottom"} | |
130 | {/if} |