Merge pull request #15837 from totten/master-prtmpl
[civicrm-core.git] / templates / CRM / Event / Page / ParticipantListing / Name.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 {* Displays participant listing for an event. *}
11 {if $rows}
12 {include file="CRM/common/pager.tpl" location="top"}
13 <table class="selector" cellpadding="0" cellspacing="0" border="0">
14 <tr class="columnheader">
15 {foreach from=$headers item=header}
16 <th scope="col">
17 {if $header.sort}
18 {assign var='key' value=$header.sort}
19 {$sort->_response.$key.link}
20 {else}
21 {$header.name}
22 {/if}
23 </th>
24 {/foreach}
25 </tr>
26 {foreach from=$rows item=row}
27 <tr class="{cycle values="odd-row,even-row"} crm-participant-name">
28 <td>{$row.name}</td>
29 </tr>
30 {/foreach}
31 </table>
32 {include file="CRM/common/pager.tpl" location="bottom"}
33 {else}
34 <div class='spacer'></div>
35 <div class="messages status no-popup">
36 <div class="icon inform-icon"></div>
37 {ts}There are currently no participants registered for this event.{/ts}
38 </div>
39 {/if}