From 67bb6495dfa02e65983e873e810aee6ab68810e6 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 8 May 2018 18:00:21 +1200 Subject: [PATCH] tpl extraction of shared code for customDataBlock --- templates/CRM/Member/Form/Membership.tpl | 16 +--------------- templates/CRM/common/customDataBlock.tpl | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 templates/CRM/common/customDataBlock.tpl diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index 683c543ea4..c1831bcdff 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -206,21 +206,7 @@ {$form.receipt_text.html|crmAddClass:huge} -
- {*include custom data js file*} - {include file="CRM/common/customData.tpl"} - {literal} - - {/literal} + {include file="CRM/common/customDataBlock.tpl"} {if $accessContribution and $action eq 2 and $rows.0.contribution_id}
{ts}Related Contributions{/ts}
diff --git a/templates/CRM/common/customDataBlock.tpl b/templates/CRM/common/customDataBlock.tpl new file mode 100644 index 0000000000..21adcb8867 --- /dev/null +++ b/templates/CRM/common/customDataBlock.tpl @@ -0,0 +1,17 @@ +{if $customDataType} +
+ {*include custom data js file*} + {include file="CRM/common/customData.tpl"} + {literal} + + {/literal} +{/if} -- 2.25.1