Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
6b3ac136 C |
10 | {crmRegion name="crm-event-userdashboard-pre"} |
11 | {/crmRegion} | |
6a488035 TO |
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} | |
cae540ac | 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}"> |
6a488035 TO |
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 | - | |
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 $row.showConfirmUrl} | |
31037a42 | 44 | <a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a> |
6a488035 TO |
45 | {/if} |
46 | </td> | |
47 | </tr> | |
48 | {/foreach} | |
49 | </table> | |
50 | {/strip} | |
51 | {else} | |
52 | <div class="messages status no-popup"> | |
a24140f3 ML |
53 | <div class="icon inform-icon"></div> |
54 | {ts}You are not registered for any current or upcoming Events.{/ts} | |
6a488035 TO |
55 | </div> |
56 | {/if} | |
57 | </div> | |
6b3ac136 | 58 | {crmRegion name="crm-event-userdashboard-post"} |
cae540ac | 59 | {/crmRegion} |