repeat mode confirmation dialog generalization
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / EventInfo.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {* Step 1 of New Event Wizard, and Edit Event Info form. *}
27
28 <div class="crm-block crm-form-block crm-event-manage-eventinfo-form-block">
29 {if $cdType}
30 {include file="CRM/Custom/Form/CustomData.tpl"}
31 {else}
32 {assign var=eventID value=$id}
33 <div class="crm-submit-buttons">
34 {include file="CRM/common/formButtons.tpl" location="top"}
35 </div>
36 <table class="form-layout-compressed">
37 {if $form.template_id}
38 <tr class="crm-event-manage-eventinfo-form-block-template_id">
39 <td class="label">{$form.template_id.label} {help id="id-select-template" isTemplate=$isTemplate}</td>
40 <td>{$form.template_id.html}</td>
41 </tr>
42 {/if}
43 {if $form.template_title}
44 <tr class="crm-event-manage-eventinfo-form-block-template_title">
45 <td class="label">{$form.template_title.label} {help id="id-template-title"}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='template_title' id=$eventID}{/if}</td>
46 <td>{$form.template_title.html}</td>
47 </tr>
48 {/if}
49 <tr class="crm-event-manage-eventinfo-form-block-event_type_id">
50 <td class="label">{$form.event_type_id.label}</td>
51 <td>{$form.event_type_id.html}</td>
52 </tr>
53
54 {* CRM-7362 --add campaign *}
55 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
56 campaignTrClass="crm-event-manage-eventinfo-form-block-campaign_id"}
57
58 <tr class="crm-event-manage-eventinfo-form-block-default_role_id">
59 <td class="label">{$form.default_role_id.label} {help id="id-participant-role"}</td>
60 <td>{$form.default_role_id.html}
61 </td>
62 </tr>
63 <tr class="crm-event-manage-eventinfo-form-block-participant_listing_id">
64 <td class="label">{$form.participant_listing_id.label} {help id="id-listing" isTemplate=$isTemplate action=$action entityId=$entityId}</td>
65 <td>{$form.participant_listing_id.html}</td>
66 </tr>
67 <tr class="crm-event-manage-eventinfo-form-block-title">
68 <td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='title' id=$eventID}{/if}</td>
69 <td>{$form.title.html}<br />
70 <span class="description"> {ts}Please use only alphanumeric, spaces, hyphens and dashes for event names.{/ts}
71 </span></td>
72 </tr>
73 <tr class="crm-event-manage-eventinfo-form-block-summary">
74 <td class="label">{$form.summary.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='summary' id=$eventID}{/if}</td>
75 <td>{$form.summary.html}</td>
76 </tr>
77 <tr class="crm-event-manage-eventinfo-form-block-description">
78 <td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='description' id=$eventID}{/if}</td>
79 <td>{$form.description.html}</td>
80 </tr>
81 {if !$isTemplate}
82 <tr class="crm-event-manage-eventinfo-form-block-start_date">
83 <td class="label">{$form.start_date.label}</td>
84 <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td>
85 </tr>
86 <tr class="crm-event-manage-eventinfo-form-block-end_date">
87 <td class="label">{$form.end_date.label}</td>
88 <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
89 </tr>
90 {/if}
91 <tr class="crm-event-manage-eventinfo-form-block-max_participants">
92 <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td>
93 <td>
94 {$form.max_participants.html|crmAddClass:four}
95 {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
96 <a class="crm-popup crm-hover-button" target="_blank" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><span class="icon edit-icon"> </span></a>
97 {/if}
98 </td>
99 </tr>
100 <tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist">
101 {if $waitlist}
102 <td class="label">{$form.has_waitlist.label}</td>
103 <td>{$form.has_waitlist.html} {help id="id-has_waitlist"}</td>
104 {/if}
105 </tr>
106 <tr id="id-event_full" class="crm-event-manage-eventinfo-form-block-event_full_text">
107 <td class="label">{$form.event_full_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='event_full_text' id=$eventID}{/if}
108 <br />{help id="id-event_full_text"}&nbsp;&nbsp;&nbsp;&nbsp;</td>
109 <td>{$form.event_full_text.html}</td>
110 </tr>
111 <tr id="id-waitlist-text" class="crm-event-manage-eventinfo-form-block-waitlist_text">
112 {if $form.waitlist_text}
113 <td class="label">{$form.waitlist_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='waitlist_text' id=$eventID}{/if}<br />{help id="id-help-waitlist_text"}</td>
114 <td>{$form.waitlist_text.html}</td>
115 {/if}
116 </tr>
117 <tr class="crm-event-manage-eventinfo-form-block-is_map">
118 <td>&nbsp;</td>
119 <td>{$form.is_map.html} {$form.is_map.label} {help id="id-is_map"}</td>
120 </tr>
121 <tr class="crm-event-manage-eventinfo-form-block-is_public">
122 <td>&nbsp;</td>
123 <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td>
124 </tr>
125 <tr class="crm-event-manage-eventinfo-form-block-is_share">
126 <td>&nbsp;</td>
127 <td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"}
128 </tr>
129 <tr class="crm-event-manage-eventinfo-form-block-is_active">
130 <td>&nbsp;</td>
131 <td>{$form.is_active.html} {$form.is_active.label}</td>
132 </tr>
133
134 {if $eventID}
135 <tr>
136 <td>&nbsp;</td>
137 <td class="description">
138 {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
139 {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br />
140 <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong>
141 {elseif $config->userFramework EQ 'Joomla'}
142 {ts 1=$eventID}When this Event is active, create front-end links to the Event Information page using the Menu Manager. Select <strong>Event Info Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
143 {/if}
144 </td>
145 </tr>
146 {/if}
147 <tr>
148 <td>&nbsp;</td>
149 <td>&nbsp;</td>
150 </tr>
151 </table>
152 <div id="customData"></div>
153 {include file="CRM/Form/validate.tpl"}
154 {*include custom data js file*}
155 {literal}
156 <script type="text/javascript">
157 CRM.$(function($) {
158 {/literal}
159 {if $customDataSubType}
160 CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
161 {else}
162 CRM.buildCustomData( '{$customDataType}' );
163 {/if}
164 {literal}
165 });
166 </script>
167 {/literal}
168 <div class="crm-submit-buttons">
169 {include file="CRM/common/formButtons.tpl" location="bottom"}
170 </div>
171 {include file="CRM/common/showHide.tpl" elemType="table-row"}
172
173 {include file="CRM/Form/validate.tpl"}
174 {/if}
175 </div>
176 {literal}
177 <script type="text/javascript">
178 CRM.$(function($) {
179 var $form = $('form.{/literal}{$form.formClass}{literal}');
180 $('#template_id', $form).change(function() {
181 $(this).closest('.crm-ajax-container, #crm-main-content-wrapper')
182 .crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})})
183 .crmSnippet('refresh');
184 })
185 });
186 </script>
187 {/literal}
188