From bdb0ee52b9f239dc4bb7f56161d7a2fe358c0088 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 21 Jun 2021 10:21:07 +1200 Subject: [PATCH] Extract feeBlock to it's own tpl This is a step towards moving the FeeBlock rendering to it's own form instead of the current 'overload' approach --- templates/CRM/Event/Form/FeeBlock.tpl | 157 +++++++++++++++++++++++ templates/CRM/Event/Form/Participant.tpl | 152 +--------------------- 2 files changed, 159 insertions(+), 150 deletions(-) create mode 100644 templates/CRM/Event/Form/FeeBlock.tpl diff --git a/templates/CRM/Event/Form/FeeBlock.tpl b/templates/CRM/Event/Form/FeeBlock.tpl new file mode 100644 index 0000000000..0241921818 --- /dev/null +++ b/templates/CRM/Event/Form/FeeBlock.tpl @@ -0,0 +1,157 @@ +{* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ +*} +{if $priceSet} +
+{literal} + +{/literal} +{/if} + +{include file="CRM/Event/Form/EventFees.tpl"} diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index c2a8aa08ef..07cd154496 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -9,157 +9,9 @@ *} {* This template is used for adding/editing/deleting offline Event Registrations *} -{* Ajax callback for showing event fee snippet *} +{* Ajax callback for showing event fee snippet - to be moved to separate form *} {if $showFeeBlock} - {if $priceSet} -
- {literal} - - {/literal} - {/if} - - {include file="CRM/Event/Form/EventFees.tpl"} - + {include file="CRM/Event/Form/FeeBlock.tpl"} {* Main event form template *} {else}
-- 2.25.1