X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FEvent%2FForm%2FManageEvent%2FRegistration.tpl;h=3e94946cff1ebd85054e07614e5f8efe563440ad;hb=ec2b84a12f0495fc061b0e464a4df6661675c0fa;hp=7842d2371a8a6270322a13e3ee3da54fab2ac426;hpb=8b372a1767d5eac436f2243cfaf1068105639455;p=civicrm-core.git
diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl
index 7842d2371a..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. |
| |
@@ -161,14 +161,19 @@ class="crm-hover-button crm-button-add-profile">
{$form.custom_post_id_multiple.$profilePostNum.label} |
{$form.custom_post_id_multiple.$profilePostNum.html}
- {ts}remove profile{/ts}
- {if $smarty.foreach.profilePostIdName.last}
-
- {ts}add another profile (bottom of page){/ts}
- {/if}
+
+
+
+ {ts}remove profile{/ts}
+
+
+
+
+
+
+ {ts}add another profile (bottom of page){/ts}
+
+
|
@@ -203,15 +208,18 @@ class="crm-hover-button crm-button-add-profile">{$form.additional_custom_post_id_multiple.$profilePostNumA.label}
{$form.additional_custom_post_id_multiple.$profilePostNumA.html}
- {ts}remove profile{/ts}
- {if $smarty.foreach.profilePostIdAName.last}
-
- {ts}add another profile (bottom of page){/ts}
- {/if}
+
+
+
+ {ts}remove profile{/ts}
+
+
+
+
+
+ {ts}add another profile (bottom of page){/ts}
+
+
|
@@ -416,6 +424,7 @@ invert = 0
var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal});
function addBottomProfile( e ) {
+ var urlPath;
e.preventDefault();
var addtlPartc = $(this).data('addtlPartc');
@@ -439,11 +448,12 @@ invert = 0
e.preventDefault();
$(e.target).closest('tr').hide().find('.crm-profile-selector').val('');
- $(e.target).closest('tbody').find('tr:visible:last .profile_bottom_link_main, tr:visible:last .profile_bottom_link, tr:visible:last .profile_bottom_add_link_main').show();
+ $(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');
@@ -475,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'); }
}
});