Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {capture assign=newEventURL}{crmURL p='civicrm/event/add' q="action=add&reset=1"}{/capture} | |
7a021772 MWMC |
11 | |
12 | <div class="crm-block crm-content-block"> | |
6a488035 | 13 | <div class="float-right"> |
679bd095 | 14 | {include file="CRM/Event/Page/iCalLinks.tpl"} |
6a488035 | 15 | </div> |
6a488035 TO |
16 | |
17 | <div class="action-link"> | |
bfd83a87 | 18 | <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button crm-popup"> |
13a3d214 | 19 | <span><i class="crm-i fa-calendar-plus-o" aria-hidden="true"></i> {ts}Add Event{/ts}</span> |
6a488035 TO |
20 | </a> |
21 | <div class="clear"></div> | |
22 | </div> | |
7a021772 MWMC |
23 | |
24 | {include file="CRM/Event/Form/SearchEvent.tpl"} | |
25 | ||
6a488035 TO |
26 | {if $rows} |
27 | <div id="event_status_id" class="crm-block crm-manage-events"> | |
28 | {strip} | |
29 | {include file="CRM/common/pager.tpl" location="top"} | |
30 | {include file="CRM/common/pagerAToZ.tpl"} | |
31 | {* handle enable/disable actions*} | |
4d17a233 | 32 | {include file="CRM/common/enableDisableApi.tpl"} |
6a488035 TO |
33 | {include file="CRM/common/jsortable.tpl"} |
34 | <table id="options" class="display"> | |
35 | <thead> | |
36 | <tr> | |
37 | <th>{ts}Event{/ts}</th> | |
38 | <th>{ts}City{/ts}</th> | |
39 | <th>{ts}State/Province{/ts}</th> | |
14c89ba8 | 40 | <th>{ts}Type{/ts}</th> |
6a488035 TO |
41 | <th>{ts}Public?{/ts}</th> |
42 | <th>{ts}Starts{/ts}</th> | |
43 | <th>{ts}Ends{/ts}</th> | |
44 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
45 | <th>{ts}Campaign{/ts}</th> | |
46 | {/if} | |
47 | <th>{ts}Active?{/ts}</th> | |
48 | <th></th> | |
49 | <th class="hiddenElement"></th> | |
50 | <th class="hiddenElement"></th> | |
51 | </tr> | |
52 | </thead> | |
d7d7d5ab | 53 | {foreach from=$rows key=keys item=row} |
54 | {if $keys neq 'tab'} | |
4d17a233 | 55 | <tr id="event-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}"> |
6a488035 TO |
56 | <td class="crm-event_{$row.id}"> |
57 | <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}" | |
b9dde099 | 58 | title="{ts}View event info page{/ts}" class="bold">{$row.title}</a> ({ts}ID:{/ts} {$row.id})<br/> |
59 | <span><b>{$row.repeat}</b></span> | |
6a488035 TO |
60 | </td> |
61 | <td class="crm-event-city">{$row.city}</td> | |
62 | <td class="crm-event-state_province">{$row.state_province}</td> | |
14c89ba8 | 63 | <td class="crm-event-event_type">{$row.event_type}</td> |
6a488035 | 64 | <td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
21f96d9b KL |
65 | <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> |
66 | <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 |
67 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} |
68 | <td class="crm-event-campaign">{$row.campaign}</td> | |
69 | {/if} | |
70 | <td class="crm-event_status" id="row_{$row.id}_status"> | |
71 | {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} | |
72 | </td> | |
73 | <td class="crm-event-actions right nowrap"> | |
74 | <div class="crm-configure-actions"> | |
370781a1 | 75 | <span id="event-configure-{$row.id}" class="btn-slide crm-hover-button">{ts}Configure{/ts} |
6a488035 | 76 | <ul class="panel" id="panel_info_{$row.id}"> |
d7d7d5ab | 77 | {foreach from=$rows.tab key=k item=v} |
78 | {assign var="fld" value=$v.field} | |
79 | {if NOT $row.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if} | |
4d3e4dbe | 80 | {if $k eq 'reminder'} |
9e63fff0 | 81 | <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}" |
a49d4c3d | 82 | href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$row.id`"}">{$v.title}</a> |
4d3e4dbe | 83 | {else} |
9e63fff0 | 84 | <li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}" |
d7d7d5ab | 85 | href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$row.id`"}">{$v.title}</a></li> |
4d3e4dbe | 86 | {/if} |
d7d7d5ab | 87 | {/foreach} |
6a488035 TO |
88 | </ul> |
89 | </span> | |
90 | </div> | |
91 | ||
92 | <div class=crm-event-participants> | |
370781a1 | 93 | <span id="event-participants-{$row.id}" class="btn-slide crm-hover-button">{ts}Participants{/ts} |
6a488035 TO |
94 | <ul class="panel" id="panel_participants_{$row.id}"> |
95 | {if $findParticipants.statusCounted} | |
96 | <li> | |
4bb0b61e | 97 | <a class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search' |
6a488035 TO |
98 | q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted} |
99 | </a> | |
100 | </li> | |
101 | {/if} | |
102 | {if $findParticipants.statusNotCounted} | |
103 | <li> | |
4bb0b61e | 104 | <a class="action-item crm-hover-button" |
6a488035 TO |
105 | href="{crmURL p='civicrm/event/search' |
106 | q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted} | |
107 | </a> | |
108 | </li> | |
109 | {/if} | |
110 | {if $row.participant_listing_id} | |
111 | <li> | |
4bb0b61e | 112 | <a class="action-item crm-hover-button" |
6a488035 TO |
113 | href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`" |
114 | fe='true'}">{ts}Public Participant Listing{/ts} | |
115 | </a> | |
116 | </li> | |
117 | {/if} | |
118 | </ul> | |
119 | </span> | |
120 | </div> | |
6a488035 | 121 | <div class="crm-event-links"> |
8e7d26e4 | 122 | {$row.eventlinks|replace:'xx':$row.id} |
6a488035 TO |
123 | </div> |
124 | <div class="crm-event-more"> | |
125 | {$row.action|replace:'xx':$row.id} | |
126 | </div> | |
127 | </td> | |
128 | <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td> | |
129 | <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td> | |
130 | </tr> | |
d7d7d5ab | 131 | {/if} |
6a488035 TO |
132 | {/foreach} |
133 | </table> | |
134 | {include file="CRM/common/pager.tpl" location="bottom"} | |
135 | {/strip} | |
136 | </div> | |
137 | {else} | |
138 | {if $isSearch eq 1} | |
139 | <div class="status messages"> | |
34d6cec4 | 140 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
141 | {capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture} |
142 | {ts}No available Events match your search criteria. Suggestions:{/ts} | |
143 | <div class="spacer"></div> | |
144 | <ul> | |
145 | <li>{ts}Check your spelling.{/ts}</li> | |
cfb06b6f | 146 | <li>{ts}Try "Search All or by Date Range".{/ts}</li> |
6a488035 TO |
147 | <li>{ts}Try a different spelling or use fewer letters.{/ts}</li> |
148 | <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li> | |
149 | </ul> | |
150 | {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts} | |
151 | </div> | |
152 | {else} | |
153 | <div class="messages status no-popup"> | |
34d6cec4 | 154 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
155 | {ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts} |
156 | </div> | |
157 | {/if} | |
158 | {/if} | |
1188c7a8 | 159 | </div> |