ManagedEntities - Fix permission error during uninstallation (regression-fix)
[civicrm-core.git] / templates / CRM / Activity / Form / Selector.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10
11 {if $context EQ 'Search'}
12 {include file="CRM/common/pager.tpl" location="top"}
13 {/if}
14
15 {strip}
16 <table class="selector row-highlight">
17 <thead class="sticky">
18 <tr>
19 {if !$single and $context eq 'Search' }
20 <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
21 {/if}
22 {foreach from=$columnHeaders item=header}
23 <th scope="col">
24 {if isset($header.sort)}
25 {assign var='key' value=$header.sort}
26 {if !empty($sort)}
27 {$sort->_response.$key.link}
28 {/if}
29 {elseif isset($header.name)}
30 {$header.name}
31 {/if}
32 </th>
33 {/foreach}
34 </tr>
35 </thead>
36
37
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}">
41 {if !$single }
42 {if $context eq 'Search' }
43 {assign var=cbName value=$row.checkbox}
44 <td>{$form.$cbName.html}</td>
45 {/if}
46
47 {/if}
48
49 <td>
50 {$row.activity_type}
51 {if $row.repeat}
52 <br/>
53 <span><b>{$row.repeat}</b></span>
54 {/if}
55 </td>
56
57 <td>{if isset($row.activity_subject)}{$row.activity_subject|purify}{/if}</td>
58
59 <td>
60 {if !$row.source_contact_id}
61 <em>n/a</em>
62 {else}
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>
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 isset($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};&nbsp;{/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};&nbsp;{/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>
106 {if (!empty($row.id))}
107 {$row.action|replace:'xx':$row.id}
108 {else}
109 {$row.action}
110 {/if}
111 </td>
112
113 </tr>
114 {/foreach}
115
116 </table>
117 {/strip}
118 {include file="CRM/Case/Form/ActivityToCase.tpl"}
119
120
121 {if $context EQ 'Search'}
122 {include file="CRM/common/pager.tpl" location="bottom"}
123 {/if}