Merge pull request #22188 from totten/master-uninstall
[civicrm-core.git] / templates / CRM / Event / Page / UserDashboard.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 {crmRegion name="crm-event-userdashboard-pre"}
11 {/crmRegion}
12 <div class="view-content">
13 {if $event_rows}
14 {strip}
15 <div class="description">
16 {ts}Click on the event name for more information.{/ts}
17 </div>
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>
23 <th></th>
24 </tr>
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}
32 &nbsp; - &nbsp;
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}
36 {else}
37 {$row.event_end_date|crmDate}
38 {/if}
39 {/if}
40 </td>
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>
45 {/if}
46 </td>
47 </tr>
48 {/foreach}
49 </table>
50 {/strip}
51 {else}
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}
55 </div>
56 {/if}
57 </div>
58 {crmRegion name="crm-event-userdashboard-post"}
59 {/crmRegion}