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 | *} | |
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} | |
6a488035 TO |
13 | |
14 | {if $eventSummary.total_events} | |
13a3d214 AH |
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> | |
a2c70872 AH |
17 | <div class="clear"> </div> |
18 | <h3 id="crm-event-dashboard-heading">{ts}Event Summary{/ts} | |
19 | {help id="id-event-intro"} | |
679bd095 | 20 | {include file="CRM/Event/Page/iCalLinks.tpl"} |
37e04b68 | 21 | </h3> |
6a488035 TO |
22 | {include file="CRM/common/jsortable.tpl"} |
23 | <table id="options" class="display"> | |
24 | <thead> | |
25 | <tr> | |
26 | <th>{ts}Event{/ts}</th> | |
27 | <th>{ts}ID{/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} | |
33 | </tr> | |
34 | </thead> | |
35 | <tbody> | |
36 | {foreach from=$eventSummary.events item=values key=id} | |
37 | <tr class="crm-event_{$id}"> | |
30051f5b | 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} | |
40 | <br/> | |
41 | {if $values.is_repeating_event eq $id} | |
c566e016 | 42 | <span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span> |
30051f5b | 43 | {else} |
c566e016 | 44 | <span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span> |
30051f5b | 45 | {/if} |
46 | {/if} | |
47 | </td> | |
6a488035 TO |
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> | |
55 | {else} | |
56 | {ts}Counted{/ts}: {$values.participants} | |
57 | {/if} | |
58 | ||
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 /> | |
61 | {else} | |
62 | {ts}Not Counted{/ts}: {$values.notCountedParticipants}<hr /> | |
63 | {/if} | |
64 | ||
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 /> | |
67 | {else} | |
68 | {ts}Not Counted Due To Status{/ts}: {$values.notCountedDueToStatus}<hr /> | |
69 | {/if} | |
70 | ||
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 /> | |
73 | {else} | |
74 | {ts}Not Counted Due To Role{/ts}: {$values.notCountedDueToRole}<hr /> | |
75 | {/if} | |
76 | ||
77 | {foreach from=$values.statuses item=class} | |
78 | {if $class} | |
79 | {foreach from=$class item=status} | |
afc3dfa7 | 80 | <a href="{$status.url}" title="{ts 1=$status.label}List %1 participants{/ts}">{$status.label}: {$status.count}</a> |
6a488035 TO |
81 | {/foreach} |
82 | <hr /> | |
83 | {/if} | |
84 | {/foreach} | |
85 | {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if} | |
86 | </td> | |
d7d7d5ab | 87 | {if $actionColumn} |
6a488035 | 88 | <td class="crm-event-isMap"> |
d7d7d5ab | 89 | {if $values.isMap} |
dd7e23f2 | 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> |
d7d7d5ab | 91 | | |
92 | {/if} | |
93 | {if $values.configure} | |
94 | <div class="crm-configure-actions"> | |
370781a1 | 95 | <span id="{$id}" class="btn-slide crm-hover-button">{ts}Configure{/ts} |
d7d7d5ab | 96 | <ul class="panel" id="panel_info_{$id}"> |
97 | {foreach from=$eventSummary.tab key=k item=v} | |
98 | {assign var="fld" value=$v.field} | |
7a1698b4 | 99 | {if empty($values.$fld)}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if} |
70cbd7f7 DG |
100 | {* Schedule Reminders requires a different query string. *} |
101 | {if $v.url EQ 'civicrm/event/manage/reminder'} | |
f03ef825 | 102 | <li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}" |
70cbd7f7 DG |
103 | href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$id`"}">{$v.title}</a></li> |
104 | {else} | |
f03ef825 | 105 | <li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}" |
70cbd7f7 DG |
106 | href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li> |
107 | {/if} | |
d7d7d5ab | 108 | {/foreach} |
109 | </ul> | |
6a488035 | 110 | </span> |
d7d7d5ab | 111 | </div> |
112 | {/if} | |
6a488035 | 113 | </td> |
d7d7d5ab | 114 | {/if} |
6a488035 TO |
115 | </tr> |
116 | {/foreach} | |
117 | ||
118 | </tbody> | |
119 | </table> | |
120 | {if $eventSummary.total_events GT 10} | |
13a3d214 | 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> |
6a488035 TO |
122 | {/if} |
123 | {else} | |
124 | <br /> | |
125 | <div class="messages status no-popup"> | |
126 | <table> | |
34d6cec4 | 127 | <tr>{icon icon="fa-info-circle"}{/icon}</tr> |
6a488035 TO |
128 | <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} | |
131 | </tr> | |
132 | </table> | |
133 | </div> | |
134 | {/if} | |
135 | ||
136 | {if $pager->_totalItems} | |
137 | <br/> | |
138 | <h3>{ts}Recent Registrations{/ts}</h3> | |
139 | <div class="form-item"> | |
140 | {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"} | |
141 | </div> | |
142 | {/if} |