2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
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}
34 {if $eventSummary.total_events}
35 <div class="float-right">
36 <table class="form-layout-compressed">
38 <td><a href="{$configPagesURL}" class="button no-popup"><span>{ts}Manage Events{/ts}</span></a></td>
39 <td><a href="{$newEventURL}" class="button"><span><div class="icon add-icon"></div>{ts}New Event{/ts}</span></a></td>
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">
48 <th>{ts}Event{/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}
58 {foreach from=$eventSummary.events item=values key=id}
59 <tr class="crm-event_{$id}">
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}
63 {if $values.is_repeating_event eq $id}
64 <span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span>
66 <span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span>
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>
78 {ts}Counted{/ts}: {$values.participants}
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 />
84 {ts}Not Counted{/ts}: {$values.notCountedParticipants}<hr />
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 />
90 {ts}Not Counted Due To Status{/ts}: {$values.notCountedDueToStatus}<hr />
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 />
96 {ts}Not Counted Due To Role{/ts}: {$values.notCountedDueToRole}<hr />
99 {foreach from=$values.statuses item=class}
101 {foreach from=$class item=status}
102 <a href="{$status.url}" title="{ts 1=$status.label}List %1 participants{/ts}">{$status.label}: {$status.count}</a>
107 {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if}
110 <td class="crm-event-isMap">
112 <a href="{$values.isMap}" title="{ts}Map event location{/ts}">» {ts}Map{/ts}</a>
115 {if $values.configure}
116 <div class="crm-configure-actions">
117 <span id="{$id}" class="btn-slide crm-hover-button">{ts}Configure{/ts}
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}
122 <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}"
123 href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
136 {if $eventSummary.total_events GT 10}
137 <div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}">» {ts}Browse more events{/ts}...</a></div>
141 <div class="messages status no-popup">
143 <tr><div class="icon inform-icon"></div></tr>
145 {ts}There are no active Events to display.{/ts}
146 {ts 1=$newEventURL}You can <a href="%1">Create a New Event</a> now.{/ts}
152 {if $pager->_totalItems}
154 <h3>{ts}Recent Registrations{/ts}</h3>
155 <div class="form-item">
156 {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"}