exclude date improvements
[civicrm-core.git] / templates / CRM / Activity / Form / Selector.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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}
32 <table class="selector row-highlight">
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
61 <td>{$row.activity_type}</td>
62
63 <td>{$row.activity_subject}</td>
64
65 <td>
66 {if !$row.source_contact_id}
67 <em>n/a</em>
68 {elseif $contactId NEQ $row.source_contact_id}
69 <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>
70 {else}
71 {$row.source_contact_name}
72 {/if}
73 </td>
74
75 <td>
76 {if $row.mailingId}
77 <a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
78 {elseif $row.recipients}
79 {$row.recipients}
80 {elseif !$row.target_contact_name}
81 <em>n/a</em>
82 {elseif $row.target_contact_name}
83 {assign var="showTarget" value=0}
84 {foreach from=$row.target_contact_name item=targetName key=targetID}
85 {if $showTarget < 5}
86 {if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
87 {assign var="showTarget" value=$showTarget+1}
88 {/if}
89 {/foreach}
90 {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if}
91 {/if}
92 </td>
93
94 <td>
95 {if !$row.assignee_contact_name}
96 <em>n/a</em>
97 {elseif $row.assignee_contact_name}
98 {assign var="showAssignee" value=0}
99 {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
100 {if $showAssignee < 5}
101 {if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
102 {assign var="showAssignee" value=$showAssignee+1}
103 {/if}
104 {/foreach}
105 {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
106 {/if}
107 </td>
108
109 <td>{$row.activity_date_time|crmDate}</td>
110
111 <td>{$row.activity_status}</td>
112
113 <td>{$row.action|replace:'xx':$row.id}</td>
114 </tr>
115 {/foreach}
116
117 </table>
118 {/strip}
119 {include file="CRM/Case/Form/ActivityToCase.tpl"}
120
121
122 {if $context EQ 'Search'}
123 {include file="CRM/common/pager.tpl" location="bottom"}
124 {/if}