From 3cb75688d61995fbe4d00767a054f336cbfac3a2 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 14 Aug 2020 15:27:14 +0100 Subject: [PATCH] Fix recurring fields on backend contribution forms --- .../Form/AdditionalInfo/Payment.tpl | 35 +++++++++++-------- .../CRM/Contribute/Form/Contribution.tpl | 12 ++----- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/templates/CRM/Contribute/Form/AdditionalInfo/Payment.tpl b/templates/CRM/Contribute/Form/AdditionalInfo/Payment.tpl index 0a3921c8cf..f8e4d088a0 100644 --- a/templates/CRM/Contribute/Form/AdditionalInfo/Payment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalInfo/Payment.tpl @@ -12,21 +12,23 @@ {literal} diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 5dff905447..d138524d16 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -33,7 +33,6 @@ {/if}
- {if !$email and $action neq 8 and $context neq 'standalone'}
{icon icon="fa-info-circle"}{/icon}{ts}You will not be able to send an automatic email receipt for this contribution because there is no email address recorded for this contact. If you want a receipt to be sent when this contribution is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the contribution.{/ts} @@ -102,7 +101,7 @@ {if $buildRecurBlock && !$payNow} - + {$form.is_recur.html} {ts}every{/ts} @@ -343,6 +342,7 @@ loadPanes(cj(this).attr('id')); }); }); + // load panes function calls for snippet based on id of crm-accordion-header function loadPanes(id) { var url = "{/literal}{crmURL p='civicrm/contact/view/contribution' q="snippet=4&id=`$entityID`&formType=" h=0}{literal}" + id; @@ -398,9 +398,7 @@ {* Additional Detail / Honoree Information / Premium Information *} {foreach from=$allPanes key=paneName item=paneValue}
-
- {$paneName} -
+
{$paneName}
@@ -469,17 +467,13 @@ }); {/if} {* not delete mode if*} - {/if} {* closing of main custom data if *} {literal}