Merge pull request #17981 from eileenmcnaughton/merge_form
[civicrm-core.git] / templates / CRM / Admin / Page / EventTemplate.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/EventTemplate.tpl"}
12 {/if}
13
14 <div class="crm-content-block">
15 {if $action ne 1 and $action ne 2}
16 <div class="action-link">
17 {crmButton p="civicrm/event/add" q="action=add&is_template=1&reset=1" id="newEventTemplate" icon="plus-circle"}{ts}Add Event Template{/ts}{/crmButton}
18 <div class="clear"></div>
19 </div>
20 {/if}
21 {if $rows}
22
23 {include file="CRM/common/jsortable.tpl"}
24 {strip}
25 <table id="options" class="display">
26 <thead>
27 <tr>
28 <th id="sortable">{ts}Title{/ts}</th>
29 <th>{ts}Event Type{/ts}</th>
30 <th>{ts}Participant Role{/ts}</th>
31 <th>{ts}Participant Listing{/ts}</th>
32 <th>{ts}Public Event{/ts}</th>
33 <th>{ts}Paid Event{/ts}</th>
34 <th>{ts}Allow Online Registration{/ts}</th>
35 <th>{ts}Is Active?{/ts}</th>
36 <th></th>
37 </tr>
38 </thead>
39 {foreach from=$rows item=row}
40 <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.id}">
41 <td class="crm-event-template_title">{$row.template_title}</td>
42 <td class="crm-event-event_type">{$row.event_type}</td>
43 <td class="crm-event-participant_role">{$row.participant_role}</td>
44 <td class="crm-event-participant_listing">{$row.participant_listing}</td>
45 <td class="crm-event-is_public">{if $row.is_public eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
46 <td class="crm-event-is_monetary">{if $row.is_monetary eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
47 <td class="crm-event-is_online_registration">{if $row.is_online_registration eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
48 <td class="crm-event-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
49 <td class="crm-event-action">{$row.action|replace:'xx':$row.id}</td>
50 </tr>
51 {/foreach}
52 </table>
53 {/strip}
54
55
56
57 {else}
58 <div class="messages status no-popup">
59 {icon icon="fa-info-circle"}{/icon}
60 {capture assign=crmURL}{crmURL p='civicrm/event/add' q="action=add&is_template=1&reset=1"}{/capture}
61 {ts 1=$crmURL}There are no Event Templates present. You can <a href='%1'>add one</a>.{/ts}
62 </div>
63 {/if}
64 </div>