doing the same for contribution form
authorAndrew Hunt <andrew@aghstrategies.com>
Thu, 9 May 2013 16:09:45 +0000 (12:09 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Thu, 9 May 2013 16:09:45 +0000 (12:09 -0400)
templates/CRM/Contribute/Form/Contribution.tpl

index 065f150c06361a55fbe7efa26f169e760996c3f1..7982ae25a701056d2799476b5b4258a364b1bfdd 100644 (file)
         {/if}
 
         {if $ppID}{ts}<a href='#' onclick='adjustPayment();'>adjust payment amount</a>{/ts}{help id="adjust-payment-amount"}{/if}
-        <br /><span class="description">{ts}Actual amount given by contributor.{/ts}</span>
+        <br /><span class="description">{ts}Actual amount given by contributor.{/ts}{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/if}</span>
       </td>
     </tr>
 
@@ -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( ) {