Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
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 | {* CiviEvent DashBoard (launch page) *} | |
27 | {capture assign=newEventURL}{crmURL p="civicrm/event/add" q="action=add&reset=1"}{/capture} | |
28 | {capture assign=configPagesURL}{crmURL p="civicrm/event/manage" q="reset=1"}{/capture} | |
29 | {capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1" fe=1 a=1}{/capture} | |
30 | {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1" fe=1 a=1}{/capture} | |
31 | {capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1" fe=1 a=1}{/capture} | |
32 | {capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1" fe=1 a=1}{/capture} | |
33 | ||
34 | {if $eventSummary.total_events} | |
35 | <div class="float-right"> | |
36 | <table class="form-layout-compressed"> | |
37 | <tr> | |
aaeea03a | 38 | <td><a href="{$configPagesURL}" class="button no-popup"><span>{ts}Manage Events{/ts}</span></a></td> |
52604b19 | 39 | <td><a href="{$newEventURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}New Event{/ts}</span></a></td> |
6a488035 TO |
40 | </tr> |
41 | </table> | |
42 | </div> | |
43 | <h3>{ts}Event Summary{/ts} {help id="id-event-intro"} <a href="{$htmlFeed}" target="_blank" title="{ts}HTML listing of current and future public events.{/ts}"><img src="{$config->resourceBase}i/applications-internet.png" alt="{ts}HTML listing of current and future public events.{/ts}" /></a> <a href="{$rssFeed}" target="_blank" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}"><img src="{$config->resourceBase}i/feed-icon.png" alt="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" /></a> <a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}"><img src="{$config->resourceBase}i/office-calendar.png" alt="{ts}Download iCalendar file for current and future public events.{/ts}" /></a> <a href="{$icalFeed}" target="_blank" title="{ts}Get iCalendar feed for current and future public events.{/ts}"><img src="{$config->resourceBase}i/ical_feed.gif" alt="{ts}Get iCalendar feed for current and future public events.{/ts}" /></a></h3> | |
44 | {include file="CRM/common/jsortable.tpl"} | |
45 | <table id="options" class="display"> | |
46 | <thead> | |
47 | <tr> | |
48 | <th>{ts}Event{/ts}</th> | |
49 | <th>{ts}ID{/ts}</th> | |
50 | <th>{ts}Type{/ts}</th> | |
51 | <th id="nosort">{ts}Public{/ts}</th> | |
52 | <th id="nosort">{ts}Date(s){/ts}</th> | |
53 | <th id="nosort">{ts}Participants{/ts}</th> | |
54 | {if $actionColumn}<th></th>{/if} | |
55 | </tr> | |
56 | </thead> | |
57 | <tbody> | |
58 | {foreach from=$eventSummary.events item=values key=id} | |
59 | <tr class="crm-event_{$id}"> | |
30051f5b | 60 | <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> |
61 | {if $values.is_repeating_event} | |
62 | <br/> | |
63 | {if $values.is_repeating_event eq $id} | |
c566e016 | 64 | <span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span> |
30051f5b | 65 | {else} |
c566e016 | 66 | <span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span> |
30051f5b | 67 | {/if} |
68 | {/if} | |
69 | </td> | |
6a488035 TO |
70 | <td class="crm-event-id">{$id}</td> |
71 | <td class="crm-event-eventType">{$values.eventType}</td> | |
72 | <td class="crm-event-isPublic">{$values.isPublic}</td> | |
73 | <td class="nowrap crm-event-startDate">{$values.startDate} {if $values.endDate}to{/if} {$values.endDate}</td> | |
74 | <td class="right crm-event-participants_url"> | |
75 | {if $values.participants and $values.participants_url} | |
76 | <a href="{$values.participants_url}" title="{ts 1=$eventSummary.countedStatusANDRoles}List %1 participants{/ts}">{ts}Counted{/ts}: {$values.participants}</a> | |
77 | {else} | |
78 | {ts}Counted{/ts}: {$values.participants} | |
79 | {/if} | |
80 | ||
81 | {if $values.notCountedParticipants and $values.notCountedParticipants_url} | |
82 | <a href="{$values.notCountedParticipants_url}" title="{ts 1=$eventSummary.nonCountedStatusANDRoles}List %1 participants{/ts}">{ts}Not Counted{/ts}: {$values.notCountedParticipants}</a><hr /> | |
83 | {else} | |
84 | {ts}Not Counted{/ts}: {$values.notCountedParticipants}<hr /> | |
85 | {/if} | |
86 | ||
87 | {if $values.notCountedDueToStatus and $values.notCountedDueToStatus_url} | |
88 | <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 /> | |
89 | {else} | |
90 | {ts}Not Counted Due To Status{/ts}: {$values.notCountedDueToStatus}<hr /> | |
91 | {/if} | |
92 | ||
93 | {if $values.notCountedDueToRole and $values.notCountedDueToRole_url} | |
94 | <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 /> | |
95 | {else} | |
96 | {ts}Not Counted Due To Role{/ts}: {$values.notCountedDueToRole}<hr /> | |
97 | {/if} | |
98 | ||
99 | {foreach from=$values.statuses item=class} | |
100 | {if $class} | |
101 | {foreach from=$class item=status} | |
afc3dfa7 | 102 | <a href="{$status.url}" title="{ts 1=$status.label}List %1 participants{/ts}">{$status.label}: {$status.count}</a> |
6a488035 TO |
103 | {/foreach} |
104 | <hr /> | |
105 | {/if} | |
106 | {/foreach} | |
107 | {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if} | |
108 | </td> | |
d7d7d5ab | 109 | {if $actionColumn} |
6a488035 | 110 | <td class="crm-event-isMap"> |
d7d7d5ab | 111 | {if $values.isMap} |
112 | <a href="{$values.isMap}" title="{ts}Map event location{/ts}">» {ts}Map{/ts}</a> | |
113 | | | |
114 | {/if} | |
115 | {if $values.configure} | |
116 | <div class="crm-configure-actions"> | |
370781a1 | 117 | <span id="{$id}" class="btn-slide crm-hover-button">{ts}Configure{/ts} |
d7d7d5ab | 118 | <ul class="panel" id="panel_info_{$id}"> |
119 | {foreach from=$eventSummary.tab key=k item=v} | |
120 | {assign var="fld" value=$v.field} | |
121 | {if NOT $values.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if} | |
70cbd7f7 DG |
122 | {* Schedule Reminders requires a different query string. *} |
123 | {if $v.url EQ 'civicrm/event/manage/reminder'} | |
124 | <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}" | |
125 | href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$id`"}">{$v.title}</a></li> | |
126 | {else} | |
127 | <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}" | |
128 | href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li> | |
129 | {/if} | |
d7d7d5ab | 130 | {/foreach} |
131 | </ul> | |
6a488035 | 132 | </span> |
d7d7d5ab | 133 | </div> |
134 | {/if} | |
6a488035 | 135 | </td> |
d7d7d5ab | 136 | {/if} |
6a488035 TO |
137 | </tr> |
138 | {/foreach} | |
139 | ||
140 | </tbody> | |
141 | </table> | |
142 | {if $eventSummary.total_events GT 10} | |
143 | <div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}">» {ts}Browse more events{/ts}...</a></div> | |
144 | {/if} | |
145 | {else} | |
146 | <br /> | |
147 | <div class="messages status no-popup"> | |
148 | <table> | |
149 | <tr><div class="icon inform-icon"></div></tr> | |
150 | <tr> | |
151 | {ts}There are no active Events to display.{/ts} | |
152 | {ts 1=$newEventURL}You can <a href="%1">Create a New Event</a> now.{/ts} | |
153 | </tr> | |
154 | </table> | |
155 | </div> | |
156 | {/if} | |
157 | ||
158 | {if $pager->_totalItems} | |
159 | <br/> | |
160 | <h3>{ts}Recent Registrations{/ts}</h3> | |
161 | <div class="form-item"> | |
162 | {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"} | |
163 | </div> | |
164 | {/if} |