From d65f6a9960e0cbb268bbb55a173e564625aef4c4 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Thu, 9 May 2013 12:09:45 -0400 Subject: [PATCH] doing the same for contribution form --- templates/CRM/Contribute/Form/Contribution.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 065f150c06..7982ae25a7 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -117,7 +117,7 @@ {/if} {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if} -
{ts}Actual amount given by contributor.{/ts} +
{ts}Actual amount given by contributor.{/ts}{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/if} @@ -572,6 +572,8 @@ function buildAmount( priceSetId ) { // show/hide price set amount and total amount. cj("#totalAmountORPriceSet").show( ); cj("#totalAmount").show( ); + var choose = "{/literal}{ts}Choose price set{/ts}{literal}"; + cj("#price_set_id option[value='']").html( choose ); //we might want to build recur block. if (cj("#is_recur")) buildRecurBlock( null ); @@ -600,6 +602,8 @@ function buildAmount( priceSetId ) { cj( "#totalAmountORPriceSet" ).hide( ); cj( "#totalAmount").hide( ); + var manual = "{/literal}{ts}Manual contribution amount{/ts}{literal}"; + cj("#price_set_id option[value='']").html( manual ); } function adjustPayment( ) { -- 2.25.1