From 2be3658f5e2e1fa727747043f2a84cf7bc447f52 Mon Sep 17 00:00:00 2001 From: Guanhuan Chen Date: Thu, 26 Nov 2015 13:23:29 +0000 Subject: [PATCH] Move div pair into OnBehalfOf.tpl with condition on front-end --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 4 +--- templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index ac3fe8804f..6ce70a6898 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -25,9 +25,7 @@ *} {* Callback snippet: On-behalf profile *} {if $snippet and !empty($isOnBehalfCallback)} -
- {include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl" context="front-end"} -
+{include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl" context="front-end"} {* Callback snippet: Load payment processor *} {elseif $snippet} {include file="CRM/Core/BillingBlock.tpl"} diff --git a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index 1f44085988..8b5eee6d35 100644 --- a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -31,6 +31,9 @@ *} {if $buildOnBehalfForm or $onBehalfRequired} +{if $context eq 'front-end'} +
+{/if}
{$fieldSetTitle} {if ( $relatedOrganizationFound or $onBehalfRequired ) and !$organizationName} @@ -135,6 +138,9 @@
{$form.mode.html}
+{if $context eq 'front-end'} + +{/if} {/if} {if empty($snippet)} {literal} -- 2.25.1