Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
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"> | |
a2c70872 AH |
32 | <a href="{$htmlFeed}" target="_blank" title="{ts}HTML listing of current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar"></i></a> |
33 | <a href="{$rssFeed}" target="_blank" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-rss"></i></a> | |
34 | <a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-download"></i></a> | |
35 | <a href="{$icalFeed}" target="_blank" title="{ts}Get iCalendar feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar-o"></i></a> | |
36 | {help id='icalendar'} | |
6a488035 TO |
37 | </div> |
38 | {include file="CRM/Event/Form/SearchEvent.tpl"} | |
39 | ||
40 | <div class="action-link"> | |
bfd83a87 | 41 | <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button crm-popup"> |
a2c70872 | 42 | <span><i class="crm-i fa-calendar-plus-o"></i> {ts}Add Event{/ts}</span> |
6a488035 TO |
43 | </a> |
44 | <div class="clear"></div> | |
45 | </div> | |
46 | {if $rows} | |
47 | <div id="event_status_id" class="crm-block crm-manage-events"> | |
48 | {strip} | |
49 | {include file="CRM/common/pager.tpl" location="top"} | |
50 | {include file="CRM/common/pagerAToZ.tpl"} | |
51 | {* handle enable/disable actions*} | |
4d17a233 | 52 | {include file="CRM/common/enableDisableApi.tpl"} |
6a488035 TO |
53 | {include file="CRM/common/jsortable.tpl"} |
54 | <table id="options" class="display"> | |
55 | <thead> | |
56 | <tr> | |
57 | <th>{ts}Event{/ts}</th> | |
58 | <th>{ts}City{/ts}</th> | |
59 | <th>{ts}State/Province{/ts}</th> | |
14c89ba8 | 60 | <th>{ts}Type{/ts}</th> |
6a488035 TO |
61 | <th>{ts}Public?{/ts}</th> |
62 | <th>{ts}Starts{/ts}</th> | |
63 | <th>{ts}Ends{/ts}</th> | |
64 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
65 | <th>{ts}Campaign{/ts}</th> | |
66 | {/if} | |
67 | <th>{ts}Active?{/ts}</th> | |
68 | <th></th> | |
69 | <th class="hiddenElement"></th> | |
70 | <th class="hiddenElement"></th> | |
71 | </tr> | |
72 | </thead> | |
d7d7d5ab | 73 | {foreach from=$rows key=keys item=row} |
74 | {if $keys neq 'tab'} | |
4d17a233 | 75 | <tr id="event-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}"> |
6a488035 TO |
76 | <td class="crm-event_{$row.id}"> |
77 | <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}" | |
b9dde099 | 78 | title="{ts}View event info page{/ts}" class="bold">{$row.title}</a> ({ts}ID:{/ts} {$row.id})<br/> |
79 | <span><b>{$row.repeat}</b></span> | |
6a488035 TO |
80 | </td> |
81 | <td class="crm-event-city">{$row.city}</td> | |
82 | <td class="crm-event-state_province">{$row.state_province}</td> | |
14c89ba8 | 83 | <td class="crm-event-event_type">{$row.event_type}</td> |
6a488035 | 84 | <td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
21f96d9b KL |
85 | <td class="crm-event-start_date" data-order="{$row.start_date|crmDate:'%Y-%m-%d'}">{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td> |
86 | <td class="crm-event-end_date" data-order="{$row.end_date|crmDate:'%Y-%m-%d'}">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td> | |
6a488035 TO |
87 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} |
88 | <td class="crm-event-campaign">{$row.campaign}</td> | |
89 | {/if} | |
90 | <td class="crm-event_status" id="row_{$row.id}_status"> | |
91 | {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} | |
92 | </td> | |
93 | <td class="crm-event-actions right nowrap"> | |
94 | <div class="crm-configure-actions"> | |
370781a1 | 95 | <span id="event-configure-{$row.id}" class="btn-slide crm-hover-button">{ts}Configure{/ts} |
6a488035 | 96 | <ul class="panel" id="panel_info_{$row.id}"> |
d7d7d5ab | 97 | {foreach from=$rows.tab key=k item=v} |
98 | {assign var="fld" value=$v.field} | |
99 | {if NOT $row.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if} | |
4d3e4dbe | 100 | {if $k eq 'reminder'} |
9e63fff0 | 101 | <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}" |
a49d4c3d | 102 | href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$row.id`"}">{$v.title}</a> |
4d3e4dbe | 103 | {else} |
9e63fff0 | 104 | <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}" |
d7d7d5ab | 105 | href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$row.id`"}">{$v.title}</a></li> |
4d3e4dbe | 106 | {/if} |
d7d7d5ab | 107 | {/foreach} |
6a488035 TO |
108 | </ul> |
109 | </span> | |
110 | </div> | |
111 | ||
112 | <div class=crm-event-participants> | |
370781a1 | 113 | <span id="event-participants-{$row.id}" class="btn-slide crm-hover-button">{ts}Participants{/ts} |
6a488035 TO |
114 | <ul class="panel" id="panel_participants_{$row.id}"> |
115 | {if $findParticipants.statusCounted} | |
116 | <li> | |
370781a1 | 117 | <a title="Counted" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search' |
6a488035 TO |
118 | q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted} |
119 | </a> | |
120 | </li> | |
121 | {/if} | |
122 | {if $findParticipants.statusNotCounted} | |
123 | <li> | |
370781a1 | 124 | <a title="Not Counted" class="action-item crm-hover-button" |
6a488035 TO |
125 | href="{crmURL p='civicrm/event/search' |
126 | q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted} | |
127 | </a> | |
128 | </li> | |
129 | {/if} | |
130 | {if $row.participant_listing_id} | |
131 | <li> | |
370781a1 | 132 | <a title="Public Participant Listing" class="action-item crm-hover-button" |
6a488035 TO |
133 | href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`" |
134 | fe='true'}">{ts}Public Participant Listing{/ts} | |
135 | </a> | |
136 | </li> | |
137 | {/if} | |
138 | </ul> | |
139 | </span> | |
140 | </div> | |
6a488035 | 141 | <div class="crm-event-links"> |
8e7d26e4 | 142 | {$row.eventlinks|replace:'xx':$row.id} |
6a488035 TO |
143 | </div> |
144 | <div class="crm-event-more"> | |
145 | {$row.action|replace:'xx':$row.id} | |
146 | </div> | |
147 | </td> | |
148 | <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td> | |
149 | <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td> | |
150 | </tr> | |
d7d7d5ab | 151 | {/if} |
6a488035 TO |
152 | {/foreach} |
153 | </table> | |
154 | {include file="CRM/common/pager.tpl" location="bottom"} | |
155 | {/strip} | |
cfb06b6f | 156 | {if $isSearch eq 0} |
6994c77d | 157 | <div class="status messages no-popup">{ts}Don't see your event listed? Try "Search All or by Date Range" above.{/ts}</div> |
cfb06b6f | 158 | {/if} |
6a488035 TO |
159 | </div> |
160 | {else} | |
161 | {if $isSearch eq 1} | |
162 | <div class="status messages"> | |
163 | <div class="icon inform-icon"></div> | |
164 | {capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture} | |
165 | {ts}No available Events match your search criteria. Suggestions:{/ts} | |
166 | <div class="spacer"></div> | |
167 | <ul> | |
168 | <li>{ts}Check your spelling.{/ts}</li> | |
cfb06b6f | 169 | <li>{ts}Try "Search All or by Date Range".{/ts}</li> |
6a488035 TO |
170 | <li>{ts}Try a different spelling or use fewer letters.{/ts}</li> |
171 | <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li> | |
172 | </ul> | |
173 | {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts} | |
174 | </div> | |
175 | {else} | |
176 | <div class="messages status no-popup"> | |
177 | <div class="icon inform-icon"></div> | |
178 | {ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts} | |
179 | </div> | |
180 | {/if} | |
181 | {/if} |