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 {* CiviEvent DashBoard (launch page) *}
11 {capture assign=newEventURL}{crmURL p="civicrm/event/add" q="action=add&reset=1"}{/capture}
12 {capture assign=configPagesURL}{crmURL p="civicrm/event/manage" q="reset=1"}{/capture}
14 {if $eventSummary.total_events}
15 <a href="{$configPagesURL}" class="button no-popup"><span><i class="crm-i fa-th-list" aria-hidden="true"></i> {ts}Manage Events{/ts}</span></a>
16 <a href="{$newEventURL}" class="button"><span><i class="crm-i fa-calendar-plus-o" aria-hidden="true"></i> {ts}New Event{/ts}</span></a>
17 <div class="clear"> </div>
18 <h3 id="crm-event-dashboard-heading">{ts}Event Summary{/ts}
19 {help id="id-event-intro"}
20 {include file="CRM/Event/Page/iCalLinks.tpl"}
22 {include file="CRM/common/jsortable.tpl"}
23 <table id="options" class="display">
26 <th>{ts}Event{/ts}</th>
28 <th>{ts}Type{/ts}</th>
29 <th id="nosort">{ts}Public{/ts}</th>
30 <th id="nosort">{ts}Date(s){/ts}</th>
31 <th id="nosort">{ts}Participants{/ts}</th>
32 {if $actionColumn}<th></th>{/if}
36 {foreach from=$eventSummary.events item=values key=id}
37 <tr class="crm-event_{$id}">
38 <td class="crm-event-eventTitle"><a href="{crmURL p="civicrm/event/info" q="reset=1&id=`$id`"}" title="{ts}View event info page{/ts}">{$values.eventTitle}</a>
39 {if $values.is_repeating_event}
41 {if $values.is_repeating_event eq $id}
42 <span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span>
44 <span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span>
48 <td class="crm-event-id">{$id}</td>
49 <td class="crm-event-eventType">{$values.eventType}</td>
50 <td class="crm-event-isPublic">{$values.isPublic}</td>
51 <td class="nowrap crm-event-startDate">{$values.startDate} {if $values.endDate}to{/if} {$values.endDate}</td>
52 <td class="right crm-event-participants_url">
53 {if $values.participants and $values.participants_url}
54 <a href="{$values.participants_url}" title="{ts 1=$eventSummary.countedStatusANDRoles}List %1 participants{/ts}">{ts}Counted{/ts}: {$values.participants}</a>
56 {ts}Counted{/ts}: {$values.participants}
59 {if $values.notCountedParticipants and $values.notCountedParticipants_url}
60 <a href="{$values.notCountedParticipants_url}" title="{ts 1=$eventSummary.nonCountedStatusANDRoles}List %1 participants{/ts}">{ts}Not Counted{/ts}: {$values.notCountedParticipants}</a><hr />
62 {ts}Not Counted{/ts}: {$values.notCountedParticipants}<hr />
65 {if $values.notCountedDueToStatus and $values.notCountedDueToStatus_url}
66 <a href="{$values.notCountedDueToStatus_url}" title="{ts 1=$eventSummary.nonCountedStatus}List %1 participants{/ts}">{ts}Not Counted Due To Status{/ts}: {$values.notCountedDueToStatus}</a><hr />
68 {ts}Not Counted Due To Status{/ts}: {$values.notCountedDueToStatus}<hr />
71 {if $values.notCountedDueToRole and $values.notCountedDueToRole_url}
72 <a href="{$values.notCountedDueToRole_url}" title="{ts 1=$eventSummary.nonCountedRoles}List %1 participants{/ts}">{ts}Not Counted Due To Role{/ts}: {$values.notCountedDueToRole}</a><hr />
74 {ts}Not Counted Due To Role{/ts}: {$values.notCountedDueToRole}<hr />
77 {foreach from=$values.statuses item=class}
79 {foreach from=$class item=status}
80 <a href="{$status.url}" title="{ts 1=$status.label}List %1 participants{/ts}">{$status.label}: {$status.count}</a>
85 {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if}
88 <td class="crm-event-isMap">
90 <a href="{$values.isMap}" title="{ts}Map event location{/ts}"><i class="crm-i fa-map-marker" aria-hidden="true"></i> {ts}Map{/ts}</a>
93 {if $values.configure}
94 <div class="crm-configure-actions">
95 <span id="{$id}" class="btn-slide crm-hover-button">{ts}Configure{/ts}
96 <ul class="panel" id="panel_info_{$id}">
97 {foreach from=$eventSummary.tab key=k item=v}
98 {assign var="fld" value=$v.field}
99 {if empty($values.$fld)}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
100 {* Schedule Reminders requires a different query string. *}
101 {if $v.url EQ 'civicrm/event/manage/reminder'}
102 <li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}"
103 href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$id`"}">{$v.title}</a></li>
105 <li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}"
106 href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
120 {if $eventSummary.total_events GT 10}
121 <div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Browse more events{/ts}...</a></div>
125 <div class="messages status no-popup">
127 <tr>{icon icon="fa-info-circle"}{/icon}</tr>
129 {ts}There are no active Events to display.{/ts}
130 {ts 1=$newEventURL}You can <a href="%1">Create a New Event</a> now.{/ts}
136 {if $pager->_totalItems}
138 <h3>{ts}Recent Registrations{/ts}</h3>
139 <div class="form-item">
140 {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"}