| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.6 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | <div class="view-content"> |
| 27 | {if $event_rows} |
| 28 | {strip} |
| 29 | <div class="description"> |
| 30 | {ts}Click on the event name for more information.{/ts} |
| 31 | </div> |
| 32 | <table class="selector"> |
| 33 | <tr class="columnheader"> |
| 34 | <th>{ts}Event{/ts}</th> |
| 35 | <th>{ts}Event Date(s){/ts}</th> |
| 36 | <th>{ts}Status{/ts}</th> |
| 37 | <th></th> |
| 38 | </tr> |
| 39 | {counter start=0 skip=1 print=false} |
| 40 | {foreach from=$event_rows item=row} |
| 41 | <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}"> |
| 42 | <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> |
| 43 | <td class="crm-participant-event_start_date"> |
| 44 | {$row.event_start_date|crmDate} |
| 45 | {if $row.event_end_date} |
| 46 | - |
| 47 | {* Only show end time if end date = start date *} |
| 48 | {if $row.event_end_date|date_format:"%Y%m%d" == $row.event_start_date|date_format:"%Y%m%d"} |
| 49 | {$row.event_end_date|crmDate:0:1} |
| 50 | {else} |
| 51 | {$row.event_end_date|crmDate} |
| 52 | {/if} |
| 53 | {/if} |
| 54 | </td> |
| 55 | <td class="crm-participant-participant_status">{$row.participant_status}</td> |
| 56 | <td class="crm-participant-showConfirmUrl"> |
| 57 | {if $row.showConfirmUrl} |
| 58 | <a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a> |
| 59 | {/if} |
| 60 | </td> |
| 61 | </tr> |
| 62 | {/foreach} |
| 63 | </table> |
| 64 | {/strip} |
| 65 | {else} |
| 66 | <div class="messages status no-popup"> |
| 67 | <div class="icon inform-icon"></div> |
| 68 | {ts}You are not registered for any current or upcoming Events.{/ts} |
| 69 | |
| 70 | </div> |
| 71 | {/if} |
| 72 | </div> |