Merge pull request #13283 from aydun/token_note_fix
[civicrm-core.git] / templates / CRM / Campaign / Form / Selector.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
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{if $context EQ 'Search'}
27 {include file="CRM/common/pager.tpl" location="top"}
28{/if}
29
30{strip}
16850d34 31<table class="selector row-highlight">
6a488035
TO
32 <thead class="sticky">
33 <tr>
34 {if !$single and $context eq 'Search' }
35 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
36 {/if}
ad6a7ecc 37 <th scope="col"></th>
6a488035
TO
38 {foreach from=$columnHeaders item=header}
39
40 <th scope="col">
41 {if $header.sort}
42 {assign var='key' value=$header.sort}
43 {$sort->_response.$key.link}
44 {else}
45 {$header.name}
46 {/if}
47 </th>
48 {/foreach}
49 </tr>
50 </thead>
51
52 {counter start=0 skip=1 print=false}
53 {foreach from=$rows item=row}
54 <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"} crm-campaign">
55 {if !$single }
56 {if $context eq 'Search' }
57 {assign var=cbName value=$row.checkbox}
58 <td>{$form.$cbName.html}</td>
59 {/if}
ad6a7ecc
MR
60 <td>{$row.contact_type}</td>
61 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
62 <td>{$row.street_number}</td>
63 <td>{$row.street_name}</td>
64 <td>{$row.street_address}</td>
65 <td>{$row.city}</td>
66 <td>{$row.postal_code}</td>
67 <td>{$row.state_province}</td>
68 <td>{$row.country}</td>
69 <td>{$row.email}</td>
70 <td>{$row.phone}</td>
6a488035
TO
71 {/if}
72 </tr>
73 {/foreach}
74
75</table>
76{/strip}
77
6a488035
TO
78{if $context EQ 'Search'}
79 {include file="CRM/common/pager.tpl" location="bottom"}
80{/if}