From 4f2a1cca31b03459d91483b86c22b3831bc28bb7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Sep 2021 13:36:12 +1300 Subject: [PATCH] Enotice fixes --- templates/CRM/Contribute/Form/Contribution.tpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 627e28b309..ec494e72d9 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -11,7 +11,7 @@ {if $priceSetId} {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Contribution"} -{elseif $showAdditionalInfo and $formType } +{elseif !empty($showAdditionalInfo) and !empty($formType)} {include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"} {else} {include file="CRM/Contribute/Form/AdditionalInfo/Payment.tpl"} @@ -58,7 +58,7 @@
{include file="CRM/common/formButtons.tpl"}
- {if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if} + {if !empty($isOnline)}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if} @@ -66,7 +66,7 @@ {$form.financial_type_id.html}  - {if $is_test} + {if !empty($is_test)} {ts}(test){/ts} {/if} {help id="id-financial_type"} @@ -81,17 +81,17 @@ - {if $buildRecurBlock && !$payNow} + {if $buildRecurBlock && !empty($payNow)}
{$form.contact_id.label}
{$form.financial_type_id.label}{$form.total_amount.label} {$form.currency.html|crmAddClass:eight} {$form.total_amount.html|crmAddClass:eight} - {if $freezeFinancialType} + {if !empty($freezeFinancialType)} {help id="id-total_amount"} {/if} - {if !$payNow} + {if !empty($payNow)} {if $hasPriceSets} {ts}OR{/ts} {$form.price_set_id.html}
{/if} - {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if} + {if !empty($ppID)}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
{if $hasPriceSets}{ts}Alternatively, you can use a price set.{/ts}{/if}
@@ -100,7 +100,7 @@
@@ -148,7 +148,7 @@ {if $contribution_status_id eq 2}{if $is_pay_later }: {ts}Pay Later{/ts} {else}: {ts}Incomplete Transaction{/ts}{/if}{/if} - {if !$isUsePaymentBlock && $contactId && $contribID && $contributionMode EQ null && $contribution_status_id eq 2} + {if !empty($isUsePaymentBlock) && $contactId && $contribID && $contributionMode EQ null && $contribution_status_id eq 2} {capture assign=payNowLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=update&id=`$contribID`&cid=`$contactId`&context=`$context`&mode=live"}{/capture} {ts}Pay with Credit Card{/ts} {/if} -- 2.25.1