Merge pull request #17981 from eileenmcnaughton/merge_form
[civicrm-core.git] / templates / CRM / Event / Page / ParticipantListing / NameStatusAndDate.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 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"}">
28 <td class="crm-participant-name">{$row.name}</td>
29 <td class="crm-participant-status">{$row.status}</td>
30 <td class="crm-participant-date">{$row.date}</td>
31 </tr>
32 {/foreach}
33 </table>
34 {include file="CRM/common/pager.tpl" location="bottom"}
35 {else}
36 <div class='spacer'></div>
37 <div class="messages status no-popup">
38 {icon icon="fa-info-circle"}{/icon}
39 {ts}There are currently no participants registered for this event.{/ts}
40 </div>
41 {/if}