From: Guanhuan Chen Date: Thu, 26 Nov 2015 13:23:29 +0000 (+0000) Subject: Move div pair into OnBehalfOf.tpl with condition on front-end X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2be3658f5e2e1fa727747043f2a84cf7bc447f52;p=civicrm-core.git Move div pair into OnBehalfOf.tpl with condition on front-end --- 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}