Merge pull request #22188 from totten/master-uninstall
[civicrm-core.git] / templates / CRM / Event / Page / DashBoard.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 {* 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}
13
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">&nbsp;</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"}
21 </h3>
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}">
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}
42 <span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span>
43 {else}
44 <span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span>
45 {/if}
46 {/if}
47 </td>
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}&nbsp;{if $values.endDate}to{/if}&nbsp;{$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}:&nbsp;{$values.participants}</a>
55 {else}
56 {ts}Counted{/ts}:&nbsp;{$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&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}</a><hr />
61 {else}
62 {ts}Not&nbsp;Counted{/ts}:&nbsp;{$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&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$values.notCountedDueToStatus}</a><hr />
67 {else}
68 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$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&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}</a><hr />
73 {else}
74 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}<hr />
75 {/if}
76
77 {foreach from=$values.statuses item=class}
78 {if $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>
81 {/foreach}
82 <hr />
83 {/if}
84 {/foreach}
85 {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if}
86 </td>
87 {if $actionColumn}
88 <td class="crm-event-isMap">
89 {if $values.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>
91 &nbsp;|&nbsp;
92 {/if}
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>
104 {else}
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>
107 {/if}
108 {/foreach}
109 </ul>
110 </span>
111 </div>
112 {/if}
113 </td>
114 {/if}
115 </tr>
116 {/foreach}
117
118 </tbody>
119 </table>
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>
122 {/if}
123 {else}
124 <br />
125 <div class="messages status no-popup">
126 <table>
127 <tr>{icon icon="fa-info-circle"}{/icon}</tr>
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}