Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
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"> | |
6a488035 | 29 | {assign var=eventID value=$id} |
88a8f203 MWMC |
30 | <div class="crm-submit-buttons"> |
31 | {include file="CRM/common/formButtons.tpl" location="top"} | |
32 | </div> | |
6a488035 | 33 | <table class="form-layout-compressed"> |
88a8f203 | 34 | {if $form.template_id} |
6a488035 | 35 | <tr class="crm-event-manage-eventinfo-form-block-template_id"> |
e1462487 | 36 | <td class="label">{$form.template_id.label} {help id="id-select-template" isTemplate=$isTemplate}</td> |
88a8f203 MWMC |
37 | <td>{$form.template_id.html}</td> |
38 | </tr> | |
39 | {/if} | |
6a488035 TO |
40 | {if $form.template_title} |
41 | <tr class="crm-event-manage-eventinfo-form-block-template_title"> | |
e1462487 CW |
42 | <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> |
43 | <td>{$form.template_title.html}</td> | |
6a488035 TO |
44 | </tr> |
45 | {/if} | |
46 | <tr class="crm-event-manage-eventinfo-form-block-event_type_id"> | |
47 | <td class="label">{$form.event_type_id.label}</td> | |
48 | <td>{$form.event_type_id.html}</td> | |
49 | </tr> | |
50 | ||
88a8f203 MWMC |
51 | {* CRM-7362 --add campaign *} |
52 | {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" | |
53 | campaignTrClass="crm-event-manage-eventinfo-form-block-campaign_id"} | |
6a488035 TO |
54 | |
55 | <tr class="crm-event-manage-eventinfo-form-block-default_role_id"> | |
e1462487 CW |
56 | <td class="label">{$form.default_role_id.label} {help id="id-participant-role"}</td> |
57 | <td>{$form.default_role_id.html} | |
6a488035 TO |
58 | </td> |
59 | </tr> | |
60 | <tr class="crm-event-manage-eventinfo-form-block-participant_listing_id"> | |
e1462487 CW |
61 | <td class="label">{$form.participant_listing_id.label} {help id="id-listing" isTemplate=$isTemplate action=$action entityId=$entityId}</td> |
62 | <td>{$form.participant_listing_id.html}</td> | |
6a488035 TO |
63 | </tr> |
64 | <tr class="crm-event-manage-eventinfo-form-block-title"> | |
65 | <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> | |
66 | <td>{$form.title.html}<br /> | |
88a8f203 | 67 | <span class="description"> {ts}Please use only alphanumeric, spaces, hyphens and dashes for event names.{/ts} |
6a488035 TO |
68 | </span></td> |
69 | </tr> | |
70 | <tr class="crm-event-manage-eventinfo-form-block-summary"> | |
71 | <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> | |
72 | <td>{$form.summary.html}</td> | |
73 | </tr> | |
74 | <tr class="crm-event-manage-eventinfo-form-block-description"> | |
bf4017ee | 75 | <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> |
6a488035 TO |
76 | <td>{$form.description.html}</td> |
77 | </tr> | |
78 | {if !$isTemplate} | |
79 | <tr class="crm-event-manage-eventinfo-form-block-start_date"> | |
80 | <td class="label">{$form.start_date.label}</td> | |
c71da91d | 81 | <td>{$form.start_date.html}</td> |
6a488035 TO |
82 | </tr> |
83 | <tr class="crm-event-manage-eventinfo-form-block-end_date"> | |
84 | <td class="label">{$form.end_date.label}</td> | |
c71da91d | 85 | <td>{$form.end_date.html}</td> |
6a488035 TO |
86 | </tr> |
87 | {/if} | |
88 | <tr class="crm-event-manage-eventinfo-form-block-max_participants"> | |
b96a5de7 | 89 | <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td> |
6664c929 | 90 | <td> |
b96a5de7 | 91 | {$form.max_participants.html|crmAddClass:four} |
6664c929 | 92 | {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } |
972bd897 | 93 | <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'}"><i class="crm-i fa-wrench"></i></a> |
6664c929 DG |
94 | {/if} |
95 | </td> | |
6a488035 TO |
96 | </tr> |
97 | <tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist"> | |
98 | {if $waitlist} | |
99 | <td class="label">{$form.has_waitlist.label}</td> | |
100 | <td>{$form.has_waitlist.html} {help id="id-has_waitlist"}</td> | |
101 | {/if} | |
102 | </tr> | |
103 | <tr id="id-event_full" class="crm-event-manage-eventinfo-form-block-event_full_text"> | |
104 | <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} | |
88a8f203 | 105 | <br />{help id="id-event_full_text"} </td> |
6a488035 TO |
106 | <td>{$form.event_full_text.html}</td> |
107 | </tr> | |
108 | <tr id="id-waitlist-text" class="crm-event-manage-eventinfo-form-block-waitlist_text"> | |
109 | {if $form.waitlist_text} | |
110 | <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> | |
111 | <td>{$form.waitlist_text.html}</td> | |
112 | {/if} | |
113 | </tr> | |
114 | <tr class="crm-event-manage-eventinfo-form-block-is_map"> | |
115 | <td> </td> | |
116 | <td>{$form.is_map.html} {$form.is_map.label} {help id="id-is_map"}</td> | |
117 | </tr> | |
118 | <tr class="crm-event-manage-eventinfo-form-block-is_public"> | |
119 | <td> </td> | |
6664c929 | 120 | <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td> |
6a488035 TO |
121 | </tr> |
122 | <tr class="crm-event-manage-eventinfo-form-block-is_share"> | |
123 | <td> </td> | |
124 | <td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"} | |
125 | </tr> | |
126 | <tr class="crm-event-manage-eventinfo-form-block-is_active"> | |
127 | <td> </td> | |
128 | <td>{$form.is_active.html} {$form.is_active.label}</td> | |
129 | </tr> | |
130 | ||
131 | {if $eventID} | |
88a8f203 MWMC |
132 | <tr> |
133 | <td> </td> | |
134 | <td class="description"> | |
135 | {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} | |
136 | {ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br /> | |
137 | <strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong> | |
138 | {elseif $config->userFramework EQ 'Joomla'} | |
139 | {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} | |
140 | {/if} | |
141 | </td> | |
142 | </tr> | |
6a488035 TO |
143 | {/if} |
144 | <tr> | |
145 | <td> </td> | |
146 | <td> </td> | |
147 | </tr> | |
148 | </table> | |
f7f57fd6 | 149 | {include file="CRM/common/customDataBlock.tpl"} |
88a8f203 MWMC |
150 | <div class="crm-submit-buttons"> |
151 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
152 | </div> | |
153 | {include file="CRM/common/showHide.tpl" elemType="table-row"} | |
6a488035 | 154 | |
88a8f203 | 155 | {include file="CRM/Form/validate.tpl"} |
6a488035 TO |
156 | </div> |
157 | {literal} | |
158 | <script type="text/javascript"> | |
3cc60a06 | 159 | CRM.$(function($) { |
b50fdacc CW |
160 | var $form = $('form.{/literal}{$form.formClass}{literal}'); |
161 | $('#template_id', $form).change(function() { | |
bfd83a87 | 162 | $(this).closest('.crm-ajax-container, #crm-main-content-wrapper') |
22cb4b93 | 163 | .crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val(), is_template: $("input[name='is_template']").val()})}) |
5d92a7e7 CW |
164 | .crmSnippet('refresh'); |
165 | }) | |
166 | }); | |
6a488035 TO |
167 | </script> |
168 | {/literal} |