fix year in headers
[civicrm-core.git] / templates / CRM / Admin / Page / EventTemplate.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2017 |
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 {if $action eq 1 or $action eq 2 or $action eq 8}
27 {include file="CRM/Admin/Form/EventTemplate.tpl"}
28 {/if}
29
30 <div class="crm-content-block">
31 {if $action ne 1 and $action ne 2}
32 <div class="action-link">
33 {crmButton p="civicrm/event/add" q="action=add&is_template=1&reset=1" id="newEventTemplate" icon="plus-circle"}{ts}Add Event Template{/ts}{/crmButton}
34 <div class="clear"></div>
35 </div>
36 {/if}
37 {if $rows}
38
39 {include file="CRM/common/jsortable.tpl"}
40 {strip}
41 <table id="options" class="display">
42 <thead>
43 <tr>
44 <th id="sortable">{ts}Title{/ts}</th>
45 <th>{ts}Event Type{/ts}</th>
46 <th>{ts}Participant Role{/ts}</th>
47 <th>{ts}Participant Listing{/ts}</th>
48 <th>{ts}Public Event{/ts}</th>
49 <th>{ts}Paid Event{/ts}</th>
50 <th>{ts}Allow Online Registration{/ts}</th>
51 <th>{ts}Is Active?{/ts}</th>
52 <th></th>
53 </tr>
54 </thead>
55 {foreach from=$rows item=row}
56 <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.id}">
57 <td class="crm-event-template_title">{$row.template_title}</td>
58 <td class="crm-event-event_type">{$row.event_type}</td>
59 <td class="crm-event-participant_role">{$row.participant_role}</td>
60 <td class="crm-event-participant_listing">{$row.participant_listing}</td>
61 <td class="crm-event-is_public">{if $row.is_public eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
62 <td class="crm-event-is_monetary">{if $row.is_monetary eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
63 <td class="crm-event-is_online_registration">{if $row.is_online_registration eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
64 <td class="crm-event-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
65 <td class="crm-event-action">{$row.action|replace:'xx':$row.id}</td>
66 </tr>
67 {/foreach}
68 </table>
69 {/strip}
70
71
72
73 {else}
74 <div class="messages status no-popup">
75 <div class="icon inform-icon"></div>
76 {capture assign=crmURL}{crmURL p='civicrm/event/add' q="action=add&is_template=1&reset=1"}{/capture}
77 {ts 1=$crmURL}There are no Event Templates present. You can <a href='%1'>add one</a>.{/ts}
78 </div>
79 {/if}
80 </div>