normalize js code & whitespace
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / Registration.tpl
CommitLineData
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{if $addProfileBottomAdd OR $addProfileBottom}
d15e704c 27
28 <td scope="row" class="label" width="20%">{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].label}
29 {else}{$form.custom_post_id[$profileBottomNum].label}{/if}</td>
30 <td>{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].html}{else}{$form.custom_post_id_multiple[$profileBottomNum].html}{/if}
31 &nbsp;<span class='profile_bottom_link_remove'><a href="#" class="crm-hover-button crm-button-rem-profile" data-addtlPartc="{$addProfileBottomAdd}"><span class="icon ui-icon-trash"></span>{ts}remove profile{/ts}</a></span>&nbsp;&nbsp;<span class='profile_bottom_link'>&nbsp;<a href="#" class="crm-hover-button crm-button-add-profile"><span class="icon ui-icon-plus"></span>{ts}add profile{/ts}</a></span>
6a488035 32 <br/>
d15e704c 33 {if $addProfileBottomAdd }
34 <span class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}</span>
35 {else}
36 <span class="description">{ts}Include additional fields on this registration form by configuring and selecting a CiviCRM Profile to be included at the bottom of the page.{/ts}</span>
37 {/if}
6a488035
TO
38 <br/><span class="profile-links"></span>
39 </td>
d15e704c 40
6a488035
TO
41{else}
42{assign var=eventID value=$id}
43<div id="help">
44{ts}If you want to provide an Online Registration page for this event, check the first box below and then complete the fields on this form.{/ts}
45{help id="id-event-reg"}
46</div>
47<div class="crm-block crm-form-block crm-event-manage-registration-form-block">
48<div class="crm-submit-buttons">
49{include file="CRM/common/formButtons.tpl" location="top"}
50</div>
51
52 <div id="register">
53 <table class="form-layout">
54 <tr class="crm-event-manage-registration-form-block-is_online_registration">
55 <td class="label">{$form.is_online_registration.label}</td>
56 <td>{$form.is_online_registration.html}
7230099a 57 <span class="description">{ts}Online registration enabled?{/ts}</span>
6a488035
TO
58 </td>
59 </tr>
60 </table>
61 </div>
62 <div class="spacer"></div>
63 <div id="registration_blocks">
64 <table class="form-layout-compressed">
65
66 <tr class="crm-event-manage-registration-form-block-registration_link_text">
67 <td scope="row" class="label" width="20%">{$form.registration_link_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='registration_link_text' id=$eventID}{/if}</td>
68 <td>{$form.registration_link_text.html} {help id="id-link_text"}</td>
69 </tr>
70 {if !$isTemplate}
71 <tr class="crm-event-manage-registration-form-block-registration_start_date">
72 <td scope="row" class="label" width="20%">{$form.registration_start_date.label}</td>
73 <td>{include file="CRM/common/jcalendar.tpl" elementName=registration_start_date}</td>
74 </tr>
75 <tr class="crm-event-manage-registration-form-block-registration_end_date">
76 <td scope="row" class="label" width="20%">{$form.registration_end_date.label}</td>
77 <td>{include file="CRM/common/jcalendar.tpl" elementName=registration_end_date}</td>
78 </tr>
79 {/if}
80 <tr class="crm-event-manage-registration-form-block-is_multiple_registrations">
81 <td scope="row" class="label" width="20%">{$form.is_multiple_registrations.label}</td>
82 <td>{$form.is_multiple_registrations.html} {help id="id-allow_multiple"}</td>
83 </tr>
84 <tr class="crm-event-manage-registration-form-block-allow_same_participant_emails">
85 <td scope="row" class="label" width="20%">{$form.allow_same_participant_emails.label}</td>
86 <td>{$form.allow_same_participant_emails.html} {help id="id-allow_same_email"}</td>
87 </tr>
88 <tr class="crm-event-manage-registration-form-block-requires_approval">
89 {if $form.requires_approval}
90 <td scope="row" class="label" width="20%">{$form.requires_approval.label}</td>
91 <td>{$form.requires_approval.html} {help id="id-requires_approval"}</td>
92 {/if}
93 </tr>
94 <tr id="id-approval-text" class="crm-event-manage-registration-form-block-approval_req_text">
95 {if $form.approval_req_text}
96 <td scope="row" class="label" width="20%">{$form.approval_req_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='approval_req_text' id=$eventID}{/if}</td>
97 <td>{$form.approval_req_text.html}</td>
98 {/if}
99 </tr>
100 <tr class="crm-event-manage-registration-form-block-expiration_time">
101 <td scope="row" class="label" width="20%">{$form.expiration_time.label}</td>
102 <td>{$form.expiration_time.html|crmAddClass:four} {help id="id-expiration_time"}</td>
103 </tr>
104 </table>
105 <div class="spacer"></div>
106 {*Registration Block*}
107 <fieldset id="registration" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
108 <legend class="collapsible-title">{ts}Registration Screen{/ts}</legend>
109 <div id="registration_screen">
110 <table class= "form-layout-compressed">
111 <tr class="crm-event-manage-registration-form-block-intro_text">
112 <td scope="row" class="label" width="20%">{$form.intro_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='intro_text' id=$eventID}{/if}</td>
113 <td>{$form.intro_text.html}
114 <div class="description">{ts}Introductory message / instructions for online event registration page (may include HTML formatting tags).{/ts}</div>
115 </td>
116 </tr>
117 <tr class="crm-event-manage-registration-form-block-footer_text">
118 <td scope="row" class="label" width="20%">{$form.footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='footer_text' id=$eventID}{/if}</td>
119 <td>{$form.footer_text.html}
120 <div class="description">{ts}Optional footer text for registration screen.{/ts}</div></td>
121 </tr>
122 </table>
123 <table class= "form-layout-compressed">
124 <tr class="crm-event-manage-registration-form-block-custom_pre_id">
125 <td scope="row" class="label" width="20%">{$form.custom_pre_id.label}</td>
126 <td>{$form.custom_pre_id.html}<br />
127 <span class="description">{ts}Include additional fields on this registration form by configuring and selecting a CiviCRM Profile to be included at the top of the page (immediately after the introductory message).{/ts}{help id="event-profile"}</span><br/>
6a488035
TO
128 </td>
129 </tr>
130 <tr id="profile_post" class="crm-event-manage-registration-form-block-custom_post_id">
131 <td scope="row" class="label" width="20%">{$form.custom_post_id.label}</td>
132 <td>{$form.custom_post_id.html}
d15e704c 133 &nbsp;<span class='profile_bottom_link_main {if $profilePostMultiple}hiddenElement{/if}'>&nbsp;<a href="#" class="crm-hover-button crm-button-add-profile"><span class="icon ui-icon-plus"></span>{ts}add profile{/ts}</a></span>
6a488035
TO
134 <br />
135 <span class="description">{ts}Include additional fields on this registration form by configuring and selecting a CiviCRM Profile to be included at the bottom of the page.{/ts}</span>
6a488035
TO
136 </td>
137 </tr>
138
139 {if $profilePostMultiple}
140 {foreach from=$profilePostMultiple item=profilePostId key=profilePostNum name=profilePostIdName}
141 <tr id="custom_post_id_multiple_{$profilePostNum}_wrapper" class='crm-event-manage-registration-form-block-custom_post_multiple'>
142 <td scope="row" class="label" width="20%">{$form.custom_post_id_multiple.$profilePostNum.label}</td>
143 <td>{$form.custom_post_id_multiple.$profilePostNum.html}
d15e704c 144 &nbsp;<span class='profile_bottom_link_remove'><a href="#" class="crm-hover-button crm-button-rem-profile"><span class="icon ui-icon-trash"></span>{ts}remove profile{/ts}</a></span>
6a488035 145 {if $smarty.foreach.profilePostIdName.last}
d15e704c 146 &nbsp;&nbsp;<span class='profile_bottom_link'><a href="#" class="crm-hover-button crm-button-add-profile"><span class="icon ui-icon-plus"></span>{ts}add profile{/ts}</a></span>
6a488035
TO
147 {/if}
148 <br/><span class="profile-links"></span>
149 </td>
150 </tr>
151 {/foreach}
152 {/if}
153 </table>
154 <table class= "form-layout-compressed">
155 <tr id="additional_profile_pre" class="crm-event-manage-registration-form-block-additional_custom_pre_id">
156 <td scope="row" class="label" width="20%">{$form.additional_custom_pre_id.label}</td>
157 <td>{$form.additional_custom_pre_id.html}<br />
158 <span class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}</span>
159 <br/><span class="profile-links"></span>
160 </td>
161 </tr>
162 <tr id="additional_profile_post" class="crm-event-manage-registration-form-block-additional_custom_post_id">
163 <td scope="row" class="label" width="20%">{$form.additional_custom_post_id.label}</td>
164 <td>{$form.additional_custom_post_id.html}
d15e704c 165 &nbsp;<span class='profile_bottom_add_link_main {if $profilePostMultipleAdd}hiddenElement{/if}'><a href="#" class="crm-hover-button crm-button-add-profile"><span class="icon ui-icon-plus"></span>{ts}add profile{/ts}</a></span>
6a488035
TO
166 <br />
167 <span class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}</span>
168 <br/><span class="profile-links"></span>
169 </td>
170 </tr>
171 {if $profilePostMultipleAdd}
172 {foreach from=$profilePostMultipleAdd item=profilePostIdA key=profilePostNumA name=profilePostIdAName}
173 <tr id='additional_custom_post_id_multiple_{$profilePostNumA}_wrapper' class='crm-event-manage-registration-form-block-additional_custom_post_multiple'>
174 <td scope="row" class="label" width="20%">{$form.additional_custom_post_id_multiple.$profilePostNumA.label}</td>
175 <td>{$form.additional_custom_post_id_multiple.$profilePostNumA.html}
d15e704c 176 &nbsp;<span class='profile_bottom_add_link_remove'><a href="#" class="crm-hover-button crm-button-rem-profile"><span class="icon ui-icon-trash"></span>{ts}remove profile{/ts}</a></span>
6a488035 177 {if $smarty.foreach.profilePostIdAName.last}
d15e704c 178 &nbsp;&nbsp;<span class='profile_bottom_add_link'><a href="#" class="crm-hover-button crm-button-add-profile"><span class="icon ui-icon-plus"></span>{ts}add profile{/ts}</a></span>
6a488035
TO
179 {/if}
180 <br/><span class="profile-links"></span>
181 </td>
182 </tr>
183 {/foreach}
184 {/if}
6a488035
TO
185 </table>
186 </div>
187 </fieldset>
188
189 {*Confirmation Block*}
190 <fieldset id="confirm" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
191 <legend class="collapsible-title">{ts}Confirmation Screen{/ts}</legend>
192 <table class= "form-layout-compressed">
193 <tr class="crm-event-manage-registration-form-block-confirm_title">
194 <td scope="row" class="label" width="20%">{$form.confirm_title.label} <span class="marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_title' id=$eventID}{/if}</td>
195 <td>{$form.confirm_title.html}<br />
196 <span class="description">{ts}Page title for screen where user reviews and confirms their registration information.{/ts}</span>
197 </td>
198 </tr>
199 <tr class="crm-event-manage-registration-form-block-confirm_text">
200 <td scope="row" class="label" width="20%">{$form.confirm_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_text' id=$eventID}{/if}</td>
201 <td>{$form.confirm_text.html}
202 <div class="description">{ts}Optional instructions / message for Confirmation screen.{/ts}</div>
203 </td>
204 </tr>
205 <tr class="crm-event-manage-registration-form-block-confirm_footer_text">
206 <td scope="row" class="label" width="20%">{$form.confirm_footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_footer_text' id=$eventID}{/if}</td>
207 <td>{$form.confirm_footer_text.html}
208 <div class="description">{ts}Optional page footer text for Confirmation screen.{/ts}</div>
209 </td>
210 </tr>
211 </table>
212 </fieldset>
213
214 {*ThankYou Block*}
215 <fieldset id="thankyou" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
216 <legend class="collapsible-title">{ts}Thank-you Screen{/ts}</legend>
217 <table class= "form-layout-compressed">
218 <tr class="crm-event-manage-registration-form-block-confirm_thankyou_title">
219 <td scope="row" class="label" width="20%">{$form.thankyou_title.label} <span class="marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_title' id=$eventID}{/if}</td>
220 <td>{$form.thankyou_title.html}
221 <div class="description">{ts}Page title for registration Thank-you screen.{/ts}</div>
222 </td>
223 </tr>
224 <tr class="crm-event-manage-registration-form-block-confirm_thankyou_text">
225 <td scope="row" class="label" width="20%">{$form.thankyou_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_text' id=$eventID}{/if}</td>
226 <td>{$form.thankyou_text.html}
227 <div class="description">{ts}Optional message for Thank-you screen (may include HTML formatting).{/ts}</div>
228 </td>
229 </tr>
230 <tr class="crm-event-manage-registration-form-block-confirm_thankyou_footer_text">
231 <td scope="row" class="label" width="20%">{$form.thankyou_footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_footer_text' id=$eventID}{/if}</td>
232 <td>{$form.thankyou_footer_text.html}
233 <div class="description">{ts}Optional footer text for Thank-you screen (often used to include links to other pages/activities on your site).{/ts}</div>
234 </td>
235 </tr>
236 </table>
237 </fieldset>
238
239 {* Confirmation Email Block *}
240 <fieldset id="mail" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
241 <legend class="collapsible-title">{ts}Confirmation Email{/ts}</legend>
242 <div>
243 <table class= "form-layout-compressed">
244 <tr class="crm-event-manage-registration-form-block-is_email_confirm">
245 <td scope="row" class="label" width="20%">{$form.is_email_confirm.label}</td>
246 <td>{$form.is_email_confirm.html}<br />
247 <span class="description">{ts}Do you want a registration confirmation email sent automatically to the user? This email includes event date(s), location and contact information. For paid events, this email is also a receipt for their payment.{/ts}</span>
248 </td>
249 </tr>
250 </table>
251 <div id="confirmEmail">
252 <table class="form-layout-compressed">
253 <tr class="crm-event-manage-registration-form-block-confirm_email_text">
254 <td scope="row" class="label" width="20%">{$form.confirm_email_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_email_text' id=$eventID}{/if}</td>
255 <td>{$form.confirm_email_text.html}<br />
256 <span class="description">{ts}Additional message or instructions to include in confirmation email.{/ts}</span>
257 </td>
258 </tr>
259 <tr class="crm-event-manage-registration-form-block-confirm_from_name">
260 <td scope="row" class="label" width="20%">{$form.confirm_from_name.label} <span class="marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_from_name' id=$eventID}{/if}</td>
261 <td>{$form.confirm_from_name.html}<br />
262 <span class="description">{ts}FROM name for email.{/ts}</span>
263 </td>
264 </tr>
265 <tr class="crm-event-manage-registration-form-block-confirm_from_email">
266 <td scope="row" class="label" width="20%">{$form.confirm_from_email.label} <span class="marker">*</span></td>
267 <td>{$form.confirm_from_email.html}<br />
268 <span class="description">{ts}FROM email address (this must be a valid email account with your SMTP email service provider).{/ts}</span>
269 </td>
270 </tr>
271 <tr class="crm-event-manage-registration-form-block-cc_confirm">
272 <td scope="row" class="label" width="20%">{$form.cc_confirm.label}</td>
273 <td>{$form.cc_confirm.html}<br />
274 <span class="description">{ts}You can notify event organizers of each online registration by specifying one or more email addresses to receive a carbon copy (cc). Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</span>
275 </td>
276 </tr>
277 <tr class="crm-event-manage-registration-form-block-bcc_confirm">
278 <td scope="row" class="label" width="20%">{$form.bcc_confirm.label}</td>
279 <td>{$form.bcc_confirm.html}<br />
280 <span class="description">{ts}You may specify one or more email addresses to receive a blind carbon copy (bcc) of the confirmation email. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</span>
281 </td>
282 </tr>
283 </table>
284 </div>
285 </div>
286 </fieldset>
287 </div> {*end of div registration_blocks*}
288 </div>
289 <div class="crm-submit-buttons">
290 {include file="CRM/common/formButtons.tpl" location="bottom"}
291 </div>
292
293{include file="CRM/common/showHide.tpl"}
294{include file="CRM/common/showHideByFieldValue.tpl"
295trigger_field_id ="is_online_registration"
296trigger_value =""
297target_element_id ="registration_blocks"
298target_element_type ="block"
299field_type ="radio"
300invert = 0
301}
302{include file="CRM/common/showHideByFieldValue.tpl"
303trigger_field_id ="is_email_confirm"
304trigger_value =""
305target_element_id ="confirmEmail"
306target_element_type ="block"
307field_type ="radio"
308invert = 0
309}
310{include file="CRM/common/showHideByFieldValue.tpl"
311trigger_field_id ="is_multiple_registrations"
312trigger_value =""
313target_element_id ="additional_profile_pre|additional_profile_post"
314target_element_type ="table-row"
315field_type ="radio"
316invert = 0
317}
318{if $form.requires_approval}
319{include file="CRM/common/showHideByFieldValue.tpl"
320 trigger_field_id ="requires_approval"
321 trigger_value =""
322 target_element_id ="id-approval-text"
323 target_element_type ="table-row"
324 field_type ="radio"
325 invert = 0
326}
327{/if}
328
329{*include profile link function*}
330{include file="CRM/common/buildProfileLink.tpl"}
331
332<script type="text/javascript">
eb577803 333{literal} (function($, _) { // Generic Closure
6a488035 334
b01353b5 335 function showRuleFields( ruleFields ) {
f845ba96 336 var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same email address. The configured "Supervised" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}';
6a488035
TO
337 var msg2 = '{/literal}{ts escape='js'}Primary participants will be allowed to register for this event multiple times. No duplicate registration checking will be performed.{/ts}{literal}';
338 var msg3 = '{/literal}{ts escape='js'}Primary participants will be able to register additional participants during registration.{/ts}{literal}';
339
340 // Display info
b01353b5 341 $('.ui-notify-message .ui-notify-close').click();
342 if ( $("#allow_same_participant_emails").prop('checked' ) && cj("#is_multiple_registrations").prop('checked' ) ) {
a615afcc 343 CRM.alert( msg1, '', 'info', {expires:0} );
b01353b5 344 } else if ( $("#allow_same_participant_emails").prop('checked' ) && !cj("#is_multiple_registrations").prop('checked' ) ) {
a615afcc 345 CRM.alert( msg2, '', 'info', {expires:0} );
b01353b5 346 } else if ( !$("#allow_same_participant_emails").prop('checked' ) && cj("#is_multiple_registrations").prop('checked' ) ) {
a615afcc 347 CRM.alert( msg3, '', 'info', {expires:0} );
6a488035
TO
348 }
349 }
eb577803 350 function addBottomProfile( e ) {
351 e.preventDefault();
6a488035 352
eb577803 353 var addtlPartc = $(this).data('addtlPartc');
b01353b5 354
eb577803 355 if (addtlPartc) {
356 profileBottomCount++;
357 urlPath = CRM.url('civicrm/event/manage/registration', { addProfileBottomAdd: 1, addProfileNumAdd: profileBottomCountAdd, snippet: 4 } ) ;
358 } else {
359 profileBottomCountAdd++;
360 urlPath = CRM.url('civicrm/event/manage/registration', { addProfileBottom: 1 , addProfileNum : profileBottomCount, snippet: 4 } ) ;
361 }
d15e704c 362
eb577803 363 $(this).closest('tbody').append('<tr></tr>');
364 var $el = $(this).closest('tbody').find('tr:last');
365 $el.load(urlPath, function() { $(this).trigger('crmLoad') });
366 }
d15e704c 367
eb577803 368 function removeBottomProfile( e ) {
369 e.preventDefault();
d15e704c 370
eb577803 371 $(e.target).parents('tr').find('.crm-profile-selector').val('');
372 $(e.target).parents('tr').hide();
373 }
d15e704c 374
eb577803 375$(function($) {
d15e704c 376
eb577803 377 showRuleFields( {/literal}{$ruleFields}{literal} );
d15e704c 378
eb577803 379 $("#is_multiple_registrations").change( function( ) {
380 if ( !$(this).prop('checked') ) {
381 $("#additional_custom_pre_id").val('');
382 $("#additional_custom_post_id").val('');
383 $(".crm-event-manage-registration-form-block-additional_custom_post_multiple").hide();
384 $('#additional_profile_pre,#additional_profile_post').hide();
385 } else {
386 $(".crm-event-manage-registration-form-block-additional_custom_post_multiple").show();
387 $('#additional_profile_pre,#additional_profile_post').show();
d15e704c 388 }
389
eb577803 390 showRuleFields({/literal}{$ruleFields}{literal});
6a488035
TO
391 });
392
eb577803 393 $('#allow_same_participant_emails').change( function() { showRuleFields({/literal}{$ruleFields}{literal}) });
394
395 var profileBottomCount = Number({/literal}{$profilePostMultiple|@count}{literal});
396 var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal});
397
398 $('#registration_blocks').on('click', '.crm-button-add-profile', addBottomProfile);
399 $('#registration_blocks').on('click', '.crm-button-rem-profile', removeBottomProfile);
400
401}); // END onReady
402
403}(CRM.$, CRM._)); //Generic Closure
404{/literal}
6a488035
TO
405</script>
406{include file="CRM/common/formNavigate.tpl"}
407{/if}