Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | <a href="{crmURL p="civicrm/event/add" q="action=add&is_template=1&reset=1"}" id="newEventTemplate" class="button"> | |
34 | <span><div class="icon add-icon"></div>{ts}Add Event Template{/ts}</span></a> | |
35 | <div class="clear"></div> | |
36 | </div> | |
37 | {/if} | |
38 | {if $rows} | |
39 | ||
40 | {include file="CRM/common/jsortable.tpl"} | |
41 | {strip} | |
42 | <table id="options" class="display"> | |
43 | <thead> | |
44 | <tr> | |
45 | <th id="sortable">{ts}Title{/ts}</th> | |
46 | <th>{ts}Event Type{/ts}</th> | |
47 | <th>{ts}Participant Role{/ts}</th> | |
48 | <th>{ts}Participant Listing{/ts}</th> | |
49 | <th>{ts}Public Event{/ts}</th> | |
50 | <th>{ts}Paid Event{/ts}</th> | |
51 | <th>{ts}Allow Online Registration{/ts}</th> | |
52 | <th>{ts}Is Active?{/ts}</th> | |
53 | <th></th> | |
54 | </tr> | |
55 | </thead> | |
56 | {foreach from=$rows item=row} | |
57 | <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.id}"> | |
58 | <td class="crm-event-template_title">{$row.template_title}</td> | |
59 | <td class="crm-event-event_type">{$row.event_type}</td> | |
60 | <td class="crm-event-participant_role">{$row.participant_role}</td> | |
61 | <td class="crm-event-participant_listing">{$row.participant_listing}</td> | |
62 | <td class="crm-event-is_public">{if $row.is_public eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
63 | <td class="crm-event-is_monetary">{if $row.is_monetary eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
64 | <td class="crm-event-is_online_registration">{if $row.is_online_registration eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
65 | <td class="crm-event-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
66 | <td class="crm-event-action">{$row.action|replace:'xx':$row.id}</td> | |
67 | </tr> | |
68 | {/foreach} | |
69 | </table> | |
70 | {/strip} | |
71 | ||
72 | ||
73 | ||
74 | {else} | |
75 | <div class="messages status no-popup"> | |
76 | <div class="icon inform-icon"></div> | |
77 | {capture assign=crmURL}{crmURL p='civicrm/event/add' q="action=add&is_template=1&reset=1"}{/capture} | |
78 | {ts 1=$crmURL}There are no Event Templates present. You can <a href='%1'>add one</a>.{/ts} | |
79 | </div> | |
80 | {/if} | |
232624b1 | 81 | </div> |