Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
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 | {* 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}</td> | |
40 | <td>{$form.template_id.html} {help id="id-select-template" isTemplate=$isTemplate}</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} {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} {help id="id-template-title"}</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}</td> | |
60 | <td>{$form.default_role_id.html} {help id="id-participant-role"} | |
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}</td> | |
65 | <td>{$form.participant_listing_id.html} {help id="id-listing" isTemplate=$isTemplate action=$action entityId=$entityId}</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}</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}</td> | |
93 | <td>{$form.max_participants.html|crmAddClass:four} {help id="id-max_participants" waitlist=$waitlist}</td> | |
94 | </tr> | |
95 | <tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist"> | |
96 | {if $waitlist} | |
97 | <td class="label">{$form.has_waitlist.label}</td> | |
98 | <td>{$form.has_waitlist.html} {help id="id-has_waitlist"}</td> | |
99 | {/if} | |
100 | </tr> | |
101 | <tr id="id-event_full" class="crm-event-manage-eventinfo-form-block-event_full_text"> | |
102 | <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} | |
103 | <br />{help id="id-event_full_text"} </td> | |
104 | <td>{$form.event_full_text.html}</td> | |
105 | </tr> | |
106 | <tr id="id-waitlist-text" class="crm-event-manage-eventinfo-form-block-waitlist_text"> | |
107 | {if $form.waitlist_text} | |
108 | <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> | |
109 | <td>{$form.waitlist_text.html}</td> | |
110 | {/if} | |
111 | </tr> | |
112 | <tr class="crm-event-manage-eventinfo-form-block-is_map"> | |
113 | <td> </td> | |
114 | <td>{$form.is_map.html} {$form.is_map.label} {help id="id-is_map"}</td> | |
115 | </tr> | |
116 | <tr class="crm-event-manage-eventinfo-form-block-is_public"> | |
117 | <td> </td> | |
118 | <td>{$form.is_public.html} {$form.is_public.label}{help id="id-is_public"}</td> | |
119 | </tr> | |
120 | <tr class="crm-event-manage-eventinfo-form-block-is_share"> | |
121 | <td> </td> | |
122 | <td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"} | |
123 | </tr> | |
124 | <tr class="crm-event-manage-eventinfo-form-block-is_active"> | |
125 | <td> </td> | |
126 | <td>{$form.is_active.html} {$form.is_active.label}</td> | |
127 | </tr> | |
128 | ||
129 | {if $eventID} | |
130 | <tr> | |
131 | <td> </td> | |
132 | <td class="description"> | |
7e8bc026 | 133 | {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} |
6a488035 | 134 | {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br /> |
7e8bc026 | 135 | <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong> |
6a488035 TO |
136 | {elseif $config->userFramework EQ 'Joomla'} |
137 | {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} | |
138 | {/if} | |
139 | </td> | |
140 | </tr> | |
141 | {/if} | |
142 | <tr> | |
143 | <td> </td> | |
144 | <td> </td> | |
145 | </tr> | |
146 | </table> | |
147 | <div id="customData"></div> | |
148 | {*include custom data js file*} | |
149 | {include file="CRM/common/customData.tpl"} | |
150 | {literal} | |
151 | <script type="text/javascript"> | |
152 | cj(document).ready(function() { | |
153 | {/literal} | |
154 | {if $customDataSubType} | |
155 | CRM.buildCustomData( '{$customDataType}', {$customDataSubType} ); | |
156 | {else} | |
157 | CRM.buildCustomData( '{$customDataType}' ); | |
158 | {/if} | |
159 | {literal} | |
160 | }); | |
161 | </script> | |
162 | {/literal} | |
163 | <div class="crm-submit-buttons"> | |
164 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
165 | </div> | |
166 | {include file="CRM/common/showHide.tpl" elemType="table-row"} | |
167 | ||
168 | {* include jscript to warn if unsaved form field changes *} | |
169 | {include file="CRM/common/formNavigate.tpl"} | |
170 | ||
171 | {include file="CRM/Form/validate.tpl"} | |
172 | {/if} | |
173 | </div> | |
174 | {literal} | |
175 | <script type="text/javascript"> | |
176 | ||
177 | function reloadWindow( tempId ) { | |
178 | ||
179 | //ignore form navigation, CRM-6815 | |
180 | global_formNavigate = true; | |
181 | ||
182 | //freeze the event type element | |
183 | //when template form is loading. | |
184 | cj( "#event_type_id" ).attr('disabled', true ); | |
185 | ||
186 | window.location += '&template_id=' + tempId; | |
187 | } | |
188 | ||
189 | </script> | |
190 | {/literal} | |
191 |