From: Pratik Joshi Date: Thu, 16 Jan 2014 08:09:00 +0000 (+0530) Subject: CRM-13973 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a0d17b9d61da0e3f52c703489ae88a3ee7d7251;p=civicrm-core.git CRM-13973 --- diff --git a/templates/CRM/Contribute/Page/PaymentInfo.tpl b/templates/CRM/Contribute/Page/PaymentInfo.tpl index 444250e354..c8c10339da 100644 --- a/templates/CRM/Contribute/Page/PaymentInfo.tpl +++ b/templates/CRM/Contribute/Page/PaymentInfo.tpl @@ -25,16 +25,20 @@ *} {if $show eq 'event-payment'} {literal} - + {/literal} {/if} {if $context eq 'payment_info'} diff --git a/templates/CRM/Event/Form/EventFees.tpl b/templates/CRM/Event/Form/EventFees.tpl index 60423c0190..bc8e961ea5 100644 --- a/templates/CRM/Event/Form/EventFees.tpl +++ b/templates/CRM/Event/Form/EventFees.tpl @@ -35,9 +35,15 @@ {if $action eq 2 and $hasPayment} {* Updating *} {if $lineItem} - {ts}Event Fees{/ts} + {ts}Selections{/ts} {include file="CRM/Price/Page/LineItem.tpl" context="Event"} + + + +
{ts}Change Selections{/ts}
+ + {else} {ts}Event Level{/ts} diff --git a/templates/CRM/Event/Form/ParticipantFeeSelection.tpl b/templates/CRM/Event/Form/ParticipantFeeSelection.tpl index ea9641b069..731047a625 100644 --- a/templates/CRM/Event/Form/ParticipantFeeSelection.tpl +++ b/templates/CRM/Event/Form/ParticipantFeeSelection.tpl @@ -24,7 +24,35 @@ +--------------------------------------------------------------------+ *} {* This template is used to change selections of fees for a participant *} - +{literal} +

Change Registration Selections

@@ -53,8 +81,8 @@ - - + + {if $paymentInfo}
{$form.amount.label}{include file="CRM/Price/Form/PriceSet.tpl" extends="Event"}
{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" dontInclCal="true"}
@@ -64,7 +92,7 @@
{ts}Balance Owed{/ts}
- {include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay='false'} + {include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay='false' displayOveride='true'} {/if}
@@ -73,19 +101,8 @@
{literal} {/literal} \ No newline at end of file diff --git a/templates/CRM/Event/Form/ParticipantView.tpl b/templates/CRM/Event/Form/ParticipantView.tpl index b889f590e8..192ba55804 100644 --- a/templates/CRM/Event/Form/ParticipantView.tpl +++ b/templates/CRM/Event/Form/ParticipantView.tpl @@ -108,8 +108,10 @@ {if $fee_level} {if $lineItem} - {ts}Event Fees{/ts} - {include file="CRM/Price/Page/LineItem.tpl" context="Event"} + {ts}Selections{/ts} + {include file="CRM/Price/Page/LineItem.tpl" context="Event"} +
{ts}Change Selections{/ts}
+ {else} {ts}Event Level{/ts} {$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if} diff --git a/templates/CRM/Price/Form/Calculate.tpl b/templates/CRM/Price/Form/Calculate.tpl index d8397508c3..93034f213d 100644 --- a/templates/CRM/Price/Form/Calculate.tpl +++ b/templates/CRM/Price/Form/Calculate.tpl @@ -198,7 +198,9 @@ function calculateText( object ) { } display( totalfee ); } - +{/literal} +{if $displayOveride neq 'true'} +{literal} //display calculated amount function display( totalfee ) { // totalfee is monetary, round it to 2 decimal points so it can @@ -213,7 +215,9 @@ function display( totalfee ) { ( totalfee < 0 ) ? cj('table#pricelabel').addClass('disabled') : cj('table#pricelabel').removeClass('disabled'); } - +{/literal} +{/if} +{literal} //money formatting/localization function formatMoney (amount, c, d, t) { var n = amount, diff --git a/templates/CRM/Price/Form/PriceSet.tpl b/templates/CRM/Price/Form/PriceSet.tpl index ab303bf782..a54cd488fa 100644 --- a/templates/CRM/Price/Form/PriceSet.tpl +++ b/templates/CRM/Price/Form/PriceSet.tpl @@ -65,7 +65,7 @@
{$form.$element_name.html} {if $element.is_display_amounts && $element.html_type eq 'Text'} - x {foreach item=option from=$element.options}{$option.amount|crmMoney}{/foreach} + {foreach item=option from=$element.options}{$option.amount|crmMoney}{/foreach} {/if} {if $element.help_post}
{$element.help_post}{/if} @@ -82,8 +82,7 @@ {/if} {* Include the total calculation widget if this is NOT a quickconfig event/contribution page. *} -{if !$quickConfig} +{if !$quickConfig and !$dontInclCal} {include file="CRM/Price/Form/Calculate.tpl"} {/if} - -
+ \ No newline at end of file