Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-07-15-48-59
[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}</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>{$form.max_participants.html|crmAddClass:four}</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"}&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</td>
126 <td>{$form.is_active.html} {$form.is_active.label}</td>
127 </tr>
128
129 {if $eventID}
130 <tr>
131 <td>&nbsp;</td>
132 <td class="description">
133 {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
134 {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br />
135 <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong>
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>&nbsp;</td>
144 <td>&nbsp;</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 file="CRM/Form/validate.tpl"}
169 {/if}
170 </div>
171 {literal}
172 <script type="text/javascript">
173 CRM.$(function($) {
174 $('#template_id', '#EventInfo').change(function() {
175 $('#crm-main-content-wrapper')
176 .crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})})
177 .crmSnippet('refresh');
178 })
179 });
180 </script>
181 {/literal}
182