X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FEvent%2FForm%2FManageEvent%2FRegistration.tpl;h=3e94946cff1ebd85054e07614e5f8efe563440ad;hb=ec2b84a12f0495fc061b0e464a4df6661675c0fa;hp=cf7cb0757dbe654727aa782838071090212258e6;hpb=22e286c64812804c1e8714a0b1972be0c2d664d4;p=civicrm-core.git
diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl
index cf7cb0757d..3e94946cff 100644
--- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl
+++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl
@@ -1,8 +1,8 @@
{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@ -148,7 +148,7 @@
{$form.custom_post_id.html}
{ts}Include additional fields on this registration form by selecting and configuring a CiviCRM Profile to be included at the bottom of the page.{/ts}
- {ts}add another profile (bottom of page){/ts}
@@ -194,7 +194,7 @@ class="crm-hover-button crm-button-add-profile">{$form.additional_custom_post_id.html}
{ts}Change this if you want to use a different profile for additional participants.{/ts}
-
+
{ts}add another profile (bottom of page){/ts}
@@ -424,6 +424,7 @@ invert = 0
var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal});
function addBottomProfile( e ) {
+ var urlPath;
e.preventDefault();
var addtlPartc = $(this).data('addtlPartc');
@@ -450,8 +451,9 @@ invert = 0
$(e.target).closest('tbody').find('tr:visible:last .profile_bottom_link_main,tr:visible:last .profile_bottom_add_link, tr:visible:last .profile_bottom_link, tr:visible:last .profile_bottom_add_link_main').show();
}
- var strSameAs = ' - '+ts('same as for main contact')+' - ';
- var strSelect = ' - '+ts('select')+' - ';
+ var
+ strSameAs = '{/literal}{ts escape='js'}- same as for main contact -{/ts}{literal}',
+ strSelect = '{/literal}{ts escape='js'}- select -{/ts}{literal}';
$('#crm-container').on('crmLoad', function() {
var $container = $("[id^='additional_profile_'],.additional_profile").not('.processed').addClass('processed');
@@ -483,19 +485,16 @@ $(function($) {
$('#additional_profile_pre,#additional_profile_post').show();
}
- showRuleFields({/literal}{$ruleFields}{literal});
});
- $('#allow_same_participant_emails').change( function() { showRuleFields({/literal}{$ruleFields}{literal}) });
-
$('#registration_blocks').on('click', '.crm-button-add-profile', addBottomProfile);
$('#registration_blocks').on('click', '.crm-button-rem-profile', removeBottomProfile);
$('#crm-container').on('crmLoad', function(e) {
$('tr[id^="additional_profile"] input[id^="additional_custom_"]').change(function(e) {
- $input = $(e.target);
+ var $input = $(e.target);
if ( $input.val() == '') {
- $selected = $input.closest('tr').find('.crm-profile-selector-select :selected');
+ var $selected = $input.closest('tr').find('.crm-profile-selector-select :selected');
if ($selected.text() == strSelect) { $input.val('none'); }
}
});
|