Commit | Line | Data |
---|---|---|
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 | {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> | |
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> | |
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> | |
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> {help id='icalendar'} | |
48 | </div> | |
49 | {include file="CRM/Event/Form/SearchEvent.tpl"} | |
50 | ||
51 | <div class="action-link"> | |
bfd83a87 | 52 | <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button crm-popup"> |
6a488035 TO |
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*} | |
4d17a233 CW |
63 | {include file="CRM/common/enableDisableApi.tpl"} |
64 | {include file="CRM/common/crmeditable.tpl"} | |
6a488035 TO |
65 | {include file="CRM/common/jsortable.tpl"} |
66 | <table id="options" class="display"> | |
67 | <thead> | |
68 | <tr> | |
69 | <th>{ts}Event{/ts}</th> | |
70 | <th>{ts}City{/ts}</th> | |
71 | <th>{ts}State/Province{/ts}</th> | |
14c89ba8 | 72 | <th>{ts}Type{/ts}</th> |
6a488035 TO |
73 | <th>{ts}Public?{/ts}</th> |
74 | <th>{ts}Starts{/ts}</th> | |
75 | <th>{ts}Ends{/ts}</th> | |
76 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
77 | <th>{ts}Campaign{/ts}</th> | |
78 | {/if} | |
79 | <th>{ts}Active?{/ts}</th> | |
80 | <th></th> | |
81 | <th class="hiddenElement"></th> | |
82 | <th class="hiddenElement"></th> | |
83 | </tr> | |
84 | </thead> | |
d7d7d5ab | 85 | {foreach from=$rows key=keys item=row} |
86 | {if $keys neq 'tab'} | |
4d17a233 | 87 | <tr id="event-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}"> |
6a488035 TO |
88 | <td class="crm-event_{$row.id}"> |
89 | <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}" | |
b9dde099 | 90 | title="{ts}View event info page{/ts}" class="bold">{$row.title}</a> ({ts}ID:{/ts} {$row.id})<br/> |
91 | <span><b>{$row.repeat}</b></span> | |
6a488035 TO |
92 | </td> |
93 | <td class="crm-event-city">{$row.city}</td> | |
94 | <td class="crm-event-state_province">{$row.state_province}</td> | |
14c89ba8 | 95 | <td class="crm-event-event_type">{$row.event_type}</td> |
6a488035 TO |
96 | <td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
97 | <td class="crm-event-start_date">{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td> | |
98 | <td class="crm-event-end_date">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td> | |
99 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
100 | <td class="crm-event-campaign">{$row.campaign}</td> | |
101 | {/if} | |
102 | <td class="crm-event_status" id="row_{$row.id}_status"> | |
103 | {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} | |
104 | </td> | |
105 | <td class="crm-event-actions right nowrap"> | |
106 | <div class="crm-configure-actions"> | |
370781a1 | 107 | <span id="event-configure-{$row.id}" class="btn-slide crm-hover-button">{ts}Configure{/ts} |
6a488035 | 108 | <ul class="panel" id="panel_info_{$row.id}"> |
d7d7d5ab | 109 | {foreach from=$rows.tab key=k item=v} |
110 | {assign var="fld" value=$v.field} | |
111 | {if NOT $row.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if} | |
4d3e4dbe | 112 | {if $k eq 'reminder'} |
113 | <li><a title="{$v.title}" class="action-item crm-hover-button {$status}" | |
a49d4c3d | 114 | href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$row.id`"}">{$v.title}</a> |
4d3e4dbe | 115 | {else} |
116 | <li><a title="{$v.title}" class="action-item crm-hover-button {$status}" | |
d7d7d5ab | 117 | href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$row.id`"}">{$v.title}</a></li> |
4d3e4dbe | 118 | {/if} |
d7d7d5ab | 119 | {/foreach} |
6a488035 TO |
120 | </ul> |
121 | </span> | |
122 | </div> | |
123 | ||
124 | <div class=crm-event-participants> | |
370781a1 | 125 | <span id="event-participants-{$row.id}" class="btn-slide crm-hover-button">{ts}Participants{/ts} |
6a488035 TO |
126 | <ul class="panel" id="panel_participants_{$row.id}"> |
127 | {if $findParticipants.statusCounted} | |
128 | <li> | |
370781a1 | 129 | <a title="Counted" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search' |
6a488035 TO |
130 | q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted} |
131 | </a> | |
132 | </li> | |
133 | {/if} | |
134 | {if $findParticipants.statusNotCounted} | |
135 | <li> | |
370781a1 | 136 | <a title="Not Counted" class="action-item crm-hover-button" |
6a488035 TO |
137 | href="{crmURL p='civicrm/event/search' |
138 | q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted} | |
139 | </a> | |
140 | </li> | |
141 | {/if} | |
142 | {if $row.participant_listing_id} | |
143 | <li> | |
370781a1 | 144 | <a title="Public Participant Listing" class="action-item crm-hover-button" |
6a488035 TO |
145 | href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`" |
146 | fe='true'}">{ts}Public Participant Listing{/ts} | |
147 | </a> | |
148 | </li> | |
149 | {/if} | |
150 | </ul> | |
151 | </span> | |
152 | </div> | |
153 | ||
154 | <div class="crm-event-links"> | |
370781a1 | 155 | <span id="event-links-{$row.id}" class="btn-slide crm-hover-button">{ts}Event Links{/ts} |
6a488035 TO |
156 | <ul class="panel" id="panel_links_{$row.id}"> |
157 | <li> | |
370781a1 | 158 | <a title="Register Participant" class="action-item crm-hover-button" href="{crmURL p='civicrm/participant/add' |
6a488035 TO |
159 | q="reset=1&action=add&context=standalone&eid=`$row.id`"}">{ts}Register Participant{/ts}</a> |
160 | </li> | |
161 | <li> | |
370781a1 | 162 | <a title="Event Info" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/info' |
6a488035 TO |
163 | q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Event Info{/ts} |
164 | </a> | |
165 | </li> | |
166 | {if $row.is_online_registration} | |
167 | <li> | |
370781a1 | 168 | <a title="Online Registration (Test-drive)" class="action-item crm-hover-button" |
6a488035 TO |
169 | href="{crmURL p='civicrm/event/register' |
170 | q="reset=1&action=preview&id=`$row.id`"}">{ts}Registration (Test-drive){/ts} | |
171 | </a> | |
172 | </li> | |
173 | <li> | |
370781a1 | 174 | <a title="Online Registration (Live)" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/register' |
6a488035 TO |
175 | q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Registration (Live){/ts} |
176 | </a> | |
177 | </li> | |
178 | {/if} | |
179 | </ul> | |
180 | </span> | |
181 | </div> | |
182 | <div class="crm-event-more"> | |
183 | {$row.action|replace:'xx':$row.id} | |
184 | </div> | |
185 | </td> | |
186 | <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td> | |
187 | <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td> | |
188 | </tr> | |
d7d7d5ab | 189 | {/if} |
6a488035 TO |
190 | {/foreach} |
191 | </table> | |
192 | {include file="CRM/common/pager.tpl" location="bottom"} | |
193 | {/strip} | |
cfb06b6f | 194 | {if $isSearch eq 0} |
6994c77d | 195 | <div class="status messages no-popup">{ts}Don't see your event listed? Try "Search All or by Date Range" above.{/ts}</div> |
cfb06b6f | 196 | {/if} |
6a488035 TO |
197 | </div> |
198 | {else} | |
199 | {if $isSearch eq 1} | |
200 | <div class="status messages"> | |
201 | <div class="icon inform-icon"></div> | |
202 | {capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture} | |
203 | {ts}No available Events match your search criteria. Suggestions:{/ts} | |
204 | <div class="spacer"></div> | |
205 | <ul> | |
206 | <li>{ts}Check your spelling.{/ts}</li> | |
cfb06b6f | 207 | <li>{ts}Try "Search All or by Date Range".{/ts}</li> |
6a488035 TO |
208 | <li>{ts}Try a different spelling or use fewer letters.{/ts}</li> |
209 | <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li> | |
210 | </ul> | |
211 | {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts} | |
212 | </div> | |
213 | {else} | |
214 | <div class="messages status no-popup"> | |
215 | <div class="icon inform-icon"></div> | |
216 | {ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts} | |
217 | </div> | |
218 | {/if} | |
219 | {/if} |