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