Import from SVN (r45945, r596)
[civicrm-core.git] / templates / CRM / Event / Page / ManageEvent.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{capture assign=newEventURL}{crmURL p='civicrm/event/add' q="action=add&reset=1"}{/capture}
27{capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1" fe=1}{/capture}
28{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1" fe=1}{/capture}
29{capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1" fe=1}{/capture}
30{capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1" fe=1}{/capture}
31<div class="float-right">
32 <a href="{$htmlFeed}" target="_blank" title="{ts}HTML listing of current and future public events.{/ts}">
33 <img src="{$config->resourceBase}i/applications-internet.png"
34 alt="{ts}HTML listing of current and future public events.{/ts}" />
35 </a>&nbsp;&nbsp;
36 <a href="{$rssFeed}" target="_blank" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}">
37 <img src="{$config->resourceBase}i/feed-icon.png"
38 alt="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" />
39 </a>&nbsp;&nbsp;
40 <a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}">
41 <img src="{$config->resourceBase}i/office-calendar.png"
42 alt="{ts}Download iCalendar file for current and future public events.{/ts}" />
43 </a>&nbsp;&nbsp;
44 <a href="{$icalFeed}" target="_blank" title="{ts}Get iCalendar feed for current and future public events.{/ts}">
45 <img src="{$config->resourceBase}i/ical_feed.gif"
46 alt="{ts}Get iCalendar feed for current and future public events.{/ts}" />
47 </a>&nbsp;&nbsp;&nbsp;{help id='icalendar'}
48</div>
49{include file="CRM/Event/Form/SearchEvent.tpl"}
50
51<div class="action-link">
52 <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button">
53 <span><div class="icon add-icon"></div>{ts}Add Event{/ts}</span>
54 </a>
55 <div class="clear"></div>
56</div>
57{if $rows}
58<div id="event_status_id" class="crm-block crm-manage-events">
59 {strip}
60 {include file="CRM/common/pager.tpl" location="top"}
61 {include file="CRM/common/pagerAToZ.tpl"}
62 {* handle enable/disable actions*}
63 {include file="CRM/common/enableDisable.tpl"}
64 {include file="CRM/common/jsortable.tpl"}
65 <table id="options" class="display">
66 <thead>
67 <tr>
68 <th>{ts}Event{/ts}</th>
69 <th>{ts}City{/ts}</th>
70 <th>{ts}State/Province{/ts}</th>
71 <th>{ts}Public?{/ts}</th>
72 <th>{ts}Starts{/ts}</th>
73 <th>{ts}Ends{/ts}</th>
74 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
75 <th>{ts}Campaign{/ts}</th>
76 {/if}
77 <th>{ts}Active?{/ts}</th>
78 <th></th>
79 <th class="hiddenElement"></th>
80 <th class="hiddenElement"></th>
81 </tr>
82 </thead>
83 {foreach from=$rows item=row}
84 <tr id="row_{$row.id}" class="{if NOT $row.is_active} disabled{/if}">
85 <td class="crm-event_{$row.id}">
86 <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}"
87 title="{ts}View event info page{/ts}" class="bold">{$row.title}</a>&nbsp;&nbsp;({ts}ID:{/ts} {$row.id})
88 </td>
89 <td class="crm-event-city">{$row.city}</td>
90 <td class="crm-event-state_province">{$row.state_province}</td>
91 <td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
92 <td class="crm-event-start_date">{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
93 <td class="crm-event-end_date">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
94 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
95 <td class="crm-event-campaign">{$row.campaign}</td>
96 {/if}
97 <td class="crm-event_status" id="row_{$row.id}_status">
98 {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}
99 </td>
100 <td class="crm-event-actions right nowrap">
101 <div class="crm-configure-actions">
102 <span id="event-configure-{$row.id}" class="btn-slide">{ts}Configure{/ts}
103 <ul class="panel" id="panel_info_{$row.id}">
104 <li>
105 <a title="{ts}Info and Settings{/ts}" class="action-item-wrap"
106 href="{crmURL p='civicrm/event/manage/settings'
107 q="reset=1&action=update&id=`$row.id`"}">{ts}Info and Settings{/ts}
108 </a>
109 </li>
110 <li>
111 <a title="{ts}Location{/ts}" class="action-item-wrap {if NOT $row.is_show_location} disabled{/if}"
112 href="{crmURL p='civicrm/event/manage/location'
113 q="reset=1&action=update&id=`$row.id`"}">{ts}Location{/ts}
114 </a>
115 </li>
116 <li>
117 <a title="{ts}Fees{/ts}" class="action-item {if NOT $row.is_monetary} disabled{/if}"
118 href="{crmURL p='civicrm/event/manage/fee' q="reset=1&action=update&id=`$row.id`"}">{ts}Fees{/ts}
119 </a>
120 </li>
121 <li>
122 <a title="{ts}Online Registration{/ts}" class="action-item-wrap
123 {if NOT $row.is_online_registration} disabled{/if}" href="{crmURL
124 p='civicrm/event/manage/registration' q="reset=1&action=update&id=`$row.id`"}">
125 {ts}Online Registration{/ts}
126 </a>
127 </li>
128 <li>
129 <a title="{ts}Schedule Reminders{/ts}" class="action-item-wrap
130 {if NOT $row.reminder} disabled{/if}" href="{crmURL p='civicrm/event/manage/reminder'
131 q="reset=1&action=update&id=`$row.id`"}">{ts}Schedule Reminders{/ts}
132 </a>
133 </li>
134 {if $eventCartEnabled}
135 <li>
136 <a title="{ts}Conference Slots{/ts}" class="action-item-wrap
137 {if NOT $row.slot_label_id} disabled{/if}" href="{crmURL p='civicrm/event/manage/conference'
138 q="reset=1&action=update&id=`$row.id`"}">{ts}Conference Slots{/ts}
139 </a>
140 </li>
141 {/if}
142 <li>
143 <a title="{ts}Tell a Friend{/ts}" class="action-item-wrap {if NOT $row.friend} disabled{/if}"
144 href="{crmURL p='civicrm/event/manage/friend'
145 q="reset=1&action=update&id=`$row.id`"}">{ts}Tell a Friend{/ts}
146 </a>
147 </li>
148 <li>
149 <a title="{ts}Personal Campaign Pages{/ts}" class="action-item-wrap
150 {if NOT $row.is_pcp_enabled} disabled{/if}" href="{crmURL p='civicrm/event/manage/pcp'
151 q="reset=1&action=update&id=`$row.id`"}">{ts}Personal Campaign Pages{/ts}
152 </a>
153 </li>
154 </ul>
155 </span>
156 </div>
157
158 <div class=crm-event-participants>
159 <span id="event-participants-{$row.id}" class="btn-slide">{ts}Participants{/ts}
160 <ul class="panel" id="panel_participants_{$row.id}">
161 {if $findParticipants.statusCounted}
162 <li>
163 <a title="Counted" class="action-item-wrap" href="{crmURL p='civicrm/event/search'
164 q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted}
165 </a>
166 </li>
167 {/if}
168 {if $findParticipants.statusNotCounted}
169 <li>
170 <a title="Not Counted" class="action-item-wrap"
171 href="{crmURL p='civicrm/event/search'
172 q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted}
173 </a>
174 </li>
175 {/if}
176 {if $row.participant_listing_id}
177 <li>
178 <a title="Public Participant Listing" class="action-item-wrap"
179 href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`"
180 fe='true'}">{ts}Public Participant Listing{/ts}
181 </a>
182 </li>
183 {/if}
184 </ul>
185 </span>
186 </div>
187
188 <div class="crm-event-links">
189 <span id="event-links-{$row.id}" class="btn-slide">{ts}Event Links{/ts}
190 <ul class="panel" id="panel_links_{$row.id}">
191 <li>
192 <a title="Register Participant" class="action-item" href="{crmURL p='civicrm/participant/add'
193 q="reset=1&action=add&context=standalone&eid=`$row.id`"}">{ts}Register Participant{/ts}</a>
194 </li>
195 <li>
196 <a title="Event Info" class="action-item" href="{crmURL p='civicrm/event/info'
197 q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Event Info{/ts}
198 </a>
199 </li>
200 {if $row.is_online_registration}
201 <li>
202 <a title="Online Registration (Test-drive)" class="action-item"
203 href="{crmURL p='civicrm/event/register'
204 q="reset=1&action=preview&id=`$row.id`"}">{ts}Registration (Test-drive){/ts}
205 </a>
206 </li>
207 <li>
208 <a title="Online Registration (Live)" class="action-item" href="{crmURL p='civicrm/event/register'
209 q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Registration (Live){/ts}
210 </a>
211 </li>
212 {/if}
213 </ul>
214 </span>
215 </div>
216 <div class="crm-event-more">
217 {$row.action|replace:'xx':$row.id}
218 </div>
219 </td>
220 <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td>
221 <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td>
222 </tr>
223 {/foreach}
224 </table>
225 {include file="CRM/common/pager.tpl" location="bottom"}
226 {/strip}
227</div>
228{else}
229 {if $isSearch eq 1}
230 <div class="status messages">
231 <div class="icon inform-icon"></div>
232 {capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture}
233 {ts}No available Events match your search criteria. Suggestions:{/ts}
234 <div class="spacer"></div>
235 <ul>
236 <li>{ts}Check your spelling.{/ts}</li>
237 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
238 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
239 </ul>
240 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts}
241 </div>
242 {else}
243 <div class="messages status no-popup">
244 <div class="icon inform-icon"></div>
245 {ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts}
246 </div>
247 {/if}
248{/if}