Merge branch 4.5 into master
[civicrm-core.git] / templates / CRM / Event / Page / DashBoard.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<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}&nbsp;{if $values.endDate}to{/if}&nbsp;{$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}:&nbsp;{$values.participants}</a>
77 {else}
78 {ts}Counted{/ts}:&nbsp;{$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&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}</a><hr />
83 {else}
84 {ts}Not&nbsp;Counted{/ts}:&nbsp;{$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&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$values.notCountedDueToStatus}</a><hr />
89 {else}
90 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$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&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}</a><hr />
95 {else}
96 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$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}">&raquo;&nbsp;{ts}Map{/ts}</a>
113 &nbsp;|&nbsp;
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}
bfd83a87 122 <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}"
d7d7d5ab 123 href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
124 {/foreach}
125 </ul>
6a488035 126 </span>
d7d7d5ab 127 </div>
128 {/if}
6a488035 129 </td>
d7d7d5ab 130 {/if}
6a488035
TO
131 </tr>
132 {/foreach}
133
134 </tbody>
135 </table>
136 {if $eventSummary.total_events GT 10}
137 <div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}">&raquo; {ts}Browse more events{/ts}...</a></div>
138 {/if}
139{else}
140 <br />
141 <div class="messages status no-popup">
142 <table>
143 <tr><div class="icon inform-icon"></div></tr>
144 <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}
147 </tr>
148 </table>
149 </div>
150{/if}
151
152{if $pager->_totalItems}
153 <br/>
154 <h3>{ts}Recent Registrations{/ts}</h3>
155 <div class="form-item">
156 {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"}
157 </div>
158{/if}