2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
10 {crmRegion name="crm-event-userdashboard-pre"}
12 <div class="view-content">
15 <div class="description">
16 {ts}Click on the event name for more information.{/ts}
18 <table class="selector">
19 <tr class="columnheader">
20 <th>{ts}Event{/ts}</th>
21 <th>{ts}Event Date(s){/ts}</th>
22 <th>{ts}Status{/ts}</th>
25 {counter start=0 skip=1 print=false}
26 {foreach from=$event_rows item=row}
27 <tr id='rowid{$row.participant_id}' class=" crm-event-participant-id_{$row.participant_id} {cycle values="odd-row,even-row"}{if $row.status eq 'Cancelled'} disabled{/if}">
28 <td class="crm-participant-event-id_{$row.event_id}"><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$row.event_id`&context=dashboard"}">{$row.event_title}</a></td>
29 <td class="crm-participant-event_start_date">
30 {$row.event_start_date|crmDate}
31 {if $row.event_end_date}
33 {* Only show end time if end date = start date *}
34 {if $row.event_end_date|date_format:"%Y%m%d" == $row.event_start_date|date_format:"%Y%m%d"}
35 {$row.event_end_date|crmDate:0:1}
37 {$row.event_end_date|crmDate}
41 <td class="crm-participant-participant_status">{$row.participant_status}</td>
42 <td class="crm-participant-showConfirmUrl">
43 {if !empty($row.showConfirmUrl)}
44 <a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a>
52 <div class="messages status no-popup">
53 {icon icon="fa-info-circle"}{/icon}
54 {ts}You are not registered for any current or upcoming Events.{/ts}
58 {crmRegion name="crm-event-userdashboard-post"}