Tidy up title attributes
[civicrm-core.git] / templates / CRM / Activity / Form / Selector.tpl
CommitLineData
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">
8f0d0567
CW
17 <thead class="sticky">
18 <tr>
735d9ea4 19 {if !$single and $context eq 'Search' }
4bb0b61e 20 <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th>
735d9ea4
SL
21 {/if}
22 {foreach from=$columnHeaders item=header}
23 <th scope="col">
182feb87 24 {if isset($header.sort)}
735d9ea4 25 {assign var='key' value=$header.sort}
182feb87 26 {if !empty($sort)}
27 {$sort->_response.$key.link}
28 {/if}
29 {elseif isset($header.name)}
735d9ea4
SL
30 {$header.name}
31 {/if}
32 </th>
33 {/foreach}
34 </tr>
35 </thead>
6a488035
TO
36
37
38 {counter start=0 skip=1 print=false}
39 {foreach from=$rows item=row}
9c7f8660 40 <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
6a488035
TO
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
d8786c71 49 <td>
50 {$row.activity_type}
51 {if $row.repeat}
52 <br/>
53 <span><b>{$row.repeat}</b></span>
54 {/if}
55 </td>
6a488035 56
182feb87 57 <td>{if isset($row.activity_subject)}{$row.activity_subject|purify}{/if}</td>
6a488035
TO
58
59 <td>
60 {if !$row.source_contact_id}
61 <em>n/a</em>
6a488035 62 {else}
182feb87 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>
6a488035
TO
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>
182feb87 70 {elseif isset($row.recipients)}
6a488035
TO
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
4684d50e
EM
105 <td>
106 {if (!empty($row.id))}
107 {$row.action|replace:'xx':$row.id}
108 {else}
109 {$row.action}
110 {/if}
111 </td>
112
6a488035
TO
113 </tr>
114 {/foreach}
115
116</table>
117{/strip}
118{include file="CRM/Case/Form/ActivityToCase.tpl"}
119
120
6a488035
TO
121{if $context EQ 'Search'}
122 {include file="CRM/common/pager.tpl" location="bottom"}
123{/if}