2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {capture assign=newEventURL}{crmURL p='civicrm/event/add' q="action=add&reset=1"}{/capture}
11 {capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1" fe=1}{/capture}
12 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1" fe=1}{/capture}
13 {capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1" fe=1}{/capture}
14 {capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1" fe=1}{/capture}
16 <div class="crm-block crm-content-block">
17 <div class="float-right">
18 <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>
19 <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>
20 <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>
21 <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>
25 <div class="action-link">
26 <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button crm-popup">
27 <span><i class="crm-i fa-calendar-plus-o"></i> {ts}Add Event{/ts}</span>
29 <div class="clear"></div>
32 {include file="CRM/Event/Form/SearchEvent.tpl"}
35 <div id="event_status_id" class="crm-block crm-manage-events">
37 {include file="CRM/common/pager.tpl" location="top"}
38 {include file="CRM/common/pagerAToZ.tpl"}
39 {* handle enable/disable actions*}
40 {include file="CRM/common/enableDisableApi.tpl"}
41 {include file="CRM/common/jsortable.tpl"}
42 <table id="options" class="display">
45 <th>{ts}Event{/ts}</th>
46 <th>{ts}City{/ts}</th>
47 <th>{ts}State/Province{/ts}</th>
48 <th>{ts}Type{/ts}</th>
49 <th>{ts}Public?{/ts}</th>
50 <th>{ts}Starts{/ts}</th>
51 <th>{ts}Ends{/ts}</th>
52 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
53 <th>{ts}Campaign{/ts}</th>
55 <th>{ts}Active?{/ts}</th>
57 <th class="hiddenElement"></th>
58 <th class="hiddenElement"></th>
61 {foreach from=$rows key=keys item=row}
63 <tr id="event-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}">
64 <td class="crm-event_{$row.id}">
65 <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}"
66 title="{ts}View event info page{/ts}" class="bold">{$row.title}</a> ({ts}ID:{/ts} {$row.id})<br/>
67 <span><b>{$row.repeat}</b></span>
69 <td class="crm-event-city">{$row.city}</td>
70 <td class="crm-event-state_province">{$row.state_province}</td>
71 <td class="crm-event-event_type">{$row.event_type}</td>
72 <td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
73 <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>
74 <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>
75 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
76 <td class="crm-event-campaign">{$row.campaign}</td>
78 <td class="crm-event_status" id="row_{$row.id}_status">
79 {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}
81 <td class="crm-event-actions right nowrap">
82 <div class="crm-configure-actions">
83 <span id="event-configure-{$row.id}" class="btn-slide crm-hover-button">{ts}Configure{/ts}
84 <ul class="panel" id="panel_info_{$row.id}">
85 {foreach from=$rows.tab key=k item=v}
86 {assign var="fld" value=$v.field}
87 {if NOT $row.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
89 <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}"
90 href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$row.id`"}">{$v.title}</a>
92 <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}"
93 href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$row.id`"}">{$v.title}</a></li>
100 <div class=crm-event-participants>
101 <span id="event-participants-{$row.id}" class="btn-slide crm-hover-button">{ts}Participants{/ts}
102 <ul class="panel" id="panel_participants_{$row.id}">
103 {if $findParticipants.statusCounted}
105 <a title="Counted" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search'
106 q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted}
110 {if $findParticipants.statusNotCounted}
112 <a title="Not Counted" class="action-item crm-hover-button"
113 href="{crmURL p='civicrm/event/search'
114 q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted}
118 {if $row.participant_listing_id}
120 <a title="Public Participant Listing" class="action-item crm-hover-button"
121 href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`"
122 fe='true'}">{ts}Public Participant Listing{/ts}
129 <div class="crm-event-links">
130 {$row.eventlinks|replace:'xx':$row.id}
132 <div class="crm-event-more">
133 {$row.action|replace:'xx':$row.id}
136 <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td>
137 <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td>
142 {include file="CRM/common/pager.tpl" location="bottom"}
147 <div class="status messages">
148 <div class="icon inform-icon"></div>
149 {capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture}
150 {ts}No available Events match your search criteria. Suggestions:{/ts}
151 <div class="spacer"></div>
153 <li>{ts}Check your spelling.{/ts}</li>
154 <li>{ts}Try "Search All or by Date Range".{/ts}</li>
155 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
156 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
158 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts}
161 <div class="messages status no-popup">
162 <div class="icon inform-icon"></div>
163 {ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts}