Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
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"> | |
e1462487 CW |
39 | <td class="label">{$form.template_id.label} {help id="id-select-template" isTemplate=$isTemplate}</td> |
40 | <td>{$form.template_id.html}</td> | |
6a488035 TO |
41 | </tr> |
42 | {/if} | |
43 | {if $form.template_title} | |
44 | <tr class="crm-event-manage-eventinfo-form-block-template_title"> | |
e1462487 CW |
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> | |
6a488035 TO |
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"> | |
e1462487 CW |
59 | <td class="label">{$form.default_role_id.label} {help id="id-participant-role"}</td> |
60 | <td>{$form.default_role_id.html} | |
6a488035 TO |
61 | </td> |
62 | </tr> | |
63 | <tr class="crm-event-manage-eventinfo-form-block-participant_listing_id"> | |
e1462487 CW |
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> | |
6a488035 TO |
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} | |
6664c929 | 91 | {capture assign=participantStatusURL}{crmURL p='civicrm/admin/participant_status' q="reset=1"}{/capture} |
6a488035 | 92 | <tr class="crm-event-manage-eventinfo-form-block-max_participants"> |
6664c929 DG |
93 | <td class="label">{$form.max_participants.label}</td> |
94 | <td> | |
95 | {$form.max_participants.html|crmAddClass:four} {help id="id-max_participants" waitlist=$waitlist} | |
96 | {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } | |
97 | {capture assign=participantStatusURL}{/capture} | |
98 | <a class="crm-option-edit-link crm-hover-button" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><span class="icon edit-icon"> </span></a> | |
99 | {/if} | |
100 | </td> | |
6a488035 TO |
101 | </tr> |
102 | <tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist"> | |
103 | {if $waitlist} | |
104 | <td class="label">{$form.has_waitlist.label}</td> | |
105 | <td>{$form.has_waitlist.html} {help id="id-has_waitlist"}</td> | |
106 | {/if} | |
107 | </tr> | |
108 | <tr id="id-event_full" class="crm-event-manage-eventinfo-form-block-event_full_text"> | |
109 | <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} | |
110 | <br />{help id="id-event_full_text"} </td> | |
111 | <td>{$form.event_full_text.html}</td> | |
112 | </tr> | |
113 | <tr id="id-waitlist-text" class="crm-event-manage-eventinfo-form-block-waitlist_text"> | |
114 | {if $form.waitlist_text} | |
115 | <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> | |
116 | <td>{$form.waitlist_text.html}</td> | |
117 | {/if} | |
118 | </tr> | |
119 | <tr class="crm-event-manage-eventinfo-form-block-is_map"> | |
120 | <td> </td> | |
121 | <td>{$form.is_map.html} {$form.is_map.label} {help id="id-is_map"}</td> | |
122 | </tr> | |
123 | <tr class="crm-event-manage-eventinfo-form-block-is_public"> | |
124 | <td> </td> | |
6664c929 | 125 | <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td> |
6a488035 TO |
126 | </tr> |
127 | <tr class="crm-event-manage-eventinfo-form-block-is_share"> | |
128 | <td> </td> | |
129 | <td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"} | |
130 | </tr> | |
131 | <tr class="crm-event-manage-eventinfo-form-block-is_active"> | |
132 | <td> </td> | |
133 | <td>{$form.is_active.html} {$form.is_active.label}</td> | |
134 | </tr> | |
135 | ||
136 | {if $eventID} | |
137 | <tr> | |
138 | <td> </td> | |
139 | <td class="description"> | |
7e8bc026 | 140 | {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} |
6a488035 | 141 | {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br /> |
7e8bc026 | 142 | <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong> |
6a488035 TO |
143 | {elseif $config->userFramework EQ 'Joomla'} |
144 | {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} | |
145 | {/if} | |
146 | </td> | |
147 | </tr> | |
148 | {/if} | |
149 | <tr> | |
150 | <td> </td> | |
151 | <td> </td> | |
152 | </tr> | |
153 | </table> | |
154 | <div id="customData"></div> | |
155 | {*include custom data js file*} | |
156 | {include file="CRM/common/customData.tpl"} | |
157 | {literal} | |
158 | <script type="text/javascript"> | |
159 | cj(document).ready(function() { | |
160 | {/literal} | |
161 | {if $customDataSubType} | |
162 | CRM.buildCustomData( '{$customDataType}', {$customDataSubType} ); | |
163 | {else} | |
164 | CRM.buildCustomData( '{$customDataType}' ); | |
165 | {/if} | |
166 | {literal} | |
167 | }); | |
168 | </script> | |
169 | {/literal} | |
170 | <div class="crm-submit-buttons"> | |
171 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
172 | </div> | |
173 | {include file="CRM/common/showHide.tpl" elemType="table-row"} | |
174 | ||
6a488035 TO |
175 | {include file="CRM/Form/validate.tpl"} |
176 | {/if} | |
177 | </div> | |
178 | {literal} | |
179 | <script type="text/javascript"> | |
3cc60a06 | 180 | CRM.$(function($) { |
5d92a7e7 CW |
181 | $('#template_id', '#EventInfo').change(function() { |
182 | $('#crm-main-content-wrapper') | |
183 | .crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})}) | |
184 | .crmSnippet('refresh'); | |
185 | }) | |
186 | }); | |
6a488035 TO |
187 | </script> |
188 | {/literal} | |
189 |