Import from SVN (r45945, r596)
[civicrm-core.git] / templates / CRM / Event / Page / DashBoard.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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>
38 <td><a href="{$configPagesURL}" class="button"><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>
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}">
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></td>
61 <td class="crm-event-id">{$id}</td>
62 <td class="crm-event-eventType">{$values.eventType}</td>
63 <td class="crm-event-isPublic">{$values.isPublic}</td>
64 <td class="nowrap crm-event-startDate">{$values.startDate}&nbsp;{if $values.endDate}to{/if}&nbsp;{$values.endDate}</td>
65 <td class="right crm-event-participants_url">
66 {if $values.participants and $values.participants_url}
67 <a href="{$values.participants_url}" title="{ts 1=$eventSummary.countedStatusANDRoles}List %1 participants{/ts}">{ts}Counted{/ts}:&nbsp;{$values.participants}</a>
68 {else}
69 {ts}Counted{/ts}:&nbsp;{$values.participants}
70 {/if}
71
72 {if $values.notCountedParticipants and $values.notCountedParticipants_url}
73 <a href="{$values.notCountedParticipants_url}" title="{ts 1=$eventSummary.nonCountedStatusANDRoles}List %1 participants{/ts}">{ts}Not&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}</a><hr />
74 {else}
75 {ts}Not&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}<hr />
76 {/if}
77
78 {if $values.notCountedDueToStatus and $values.notCountedDueToStatus_url}
79 <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 />
80 {else}
81 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$values.notCountedDueToStatus}<hr />
82 {/if}
83
84 {if $values.notCountedDueToRole and $values.notCountedDueToRole_url}
85 <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 />
86 {else}
87 {ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}<hr />
88 {/if}
89
90 {foreach from=$values.statuses item=class}
91 {if $class}
92 {foreach from=$class item=status}
93 <a href="{$status.url}" title="{ts 1=$status.name}List %1 participants{/ts}">{$status.name}: {$status.count}</a>
94 {/foreach}
95 <hr />
96 {/if}
97 {/foreach}
98 {if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if}
99 </td>
100 {if $actionColumn}
101 <td class="crm-event-isMap">
102 {if $values.isMap}
103 <a href="{$values.isMap}" title="{ts}Map event location{/ts}">&raquo;&nbsp;{ts}Map{/ts}</a>&nbsp;|&nbsp;
104 {/if}
105 {if $values.configure}
106 <div class="crm-configure-actions">
107 <span id="{$id}" class="btn-slide">{ts}Configure{/ts}
108 <ul class="panel" id="panel_info_{$id}">
109 <li><a title="Info and Settings" class="action-item-wrap" href="{crmURL p='civicrm/event/manage/settings' q="reset=1&action=update&id=`$id`"}">{ts}Info and Settings{/ts}</a></li>
110 <li><a title="Location" class="action-item-wrap {if NOT $values.is_show_location} disabled{/if}" href="{crmURL p='civicrm/event/manage/location' q="reset=1&action=update&id=`$id`"}">{ts}Location{/ts}</a></li>
111 <li><a title="Fees" class="action-item {if NOT $values.is_monetary} disabled{/if}" href="{crmURL p='civicrm/event/manage/fee' q="reset=1&action=update&id=`$id`"}">{ts}Fees{/ts}</a></li>
112 <li><a title="Online Registration" class="action-item-wrap {if NOT $values.is_online_registration} disabled{/if}" href="{crmURL p='civicrm/event/manage/registration' q="reset=1&action=update&id=`$id`"}">{ts}Online Registration{/ts}</a></li>
113 <li><a title="Schedule Reminders" class="action-item-wrap {if NOT $values.reminder} disabled{/if}" href="{crmURL p='civicrm/event/manage/reminder' q="reset=1&action=update&id=`$id`"}">{ts}Schedule Reminders{/ts}</a></li>
114 <li><a title="Conference Slots" class="action-item-wrap {if NOT $values.is_subevent} disabled{/if}" href="{crmURL p='civicrm/event/manage/conference' q="reset=1&action=update&id=`$id`"}">{ts}Conference Slots{/ts}</a></li>
115 <li><a title="Tell a Friend" class="action-item-wrap {if NOT $values.friend} disabled{/if}" href="{crmURL p='civicrm/event/manage/friend' q="reset=1&action=update&id=`$id`"}">{ts}Tell a Friend{/ts}</a></li>
116 <li><a title="{ts}Personal Campaign Pages{/ts}" class="action-item-wrap {if NOT $values.is_pcp_enabled} disabled{/if}" href="{crmURL p='civicrm/event/manage/pcp' q="reset=1&action=update&id=`$id`"}">{ts}Personal Campaign Pages{/ts}</a></li>
117 </span>
118 </div>
119 {/if}
120 </td>
121 {/if}
122 </tr>
123 {/foreach}
124
125 </tbody>
126 </table>
127 {if $eventSummary.total_events GT 10}
128 <div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}">&raquo; {ts}Browse more events{/ts}...</a></div>
129 {/if}
130{else}
131 <br />
132 <div class="messages status no-popup">
133 <table>
134 <tr><div class="icon inform-icon"></div></tr>
135 <tr>
136 {ts}There are no active Events to display.{/ts}
137 {ts 1=$newEventURL}You can <a href="%1">Create a New Event</a> now.{/ts}
138 </tr>
139 </table>
140 </div>
141{/if}
142
143{if $pager->_totalItems}
144 <br/>
145 <h3>{ts}Recent Registrations{/ts}</h3>
146 <div class="form-item">
147 {include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"}
148 </div>
149{/if}