From: Coleman Watts Date: Mon, 2 Feb 2015 22:52:13 +0000 (-0500) Subject: CRM-15906 - Related js cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b467b98d1df6c5c88a615c51cbb5f1fb43f2ac85;p=civicrm-core.git CRM-15906 - Related js cleanup --- diff --git a/CRM/Pledge/Form/Payment.php b/CRM/Pledge/Form/Payment.php index de3c76e0db..182c1c2f41 100644 --- a/CRM/Pledge/Form/Payment.php +++ b/CRM/Pledge/Form/Payment.php @@ -100,13 +100,11 @@ class CRM_Pledge_Form_Payment extends CRM_Core_Form { $this->addMoney('scheduled_amount', ts('Scheduled Amount'), TRUE, - array( - 'READONLY' => TRUE, - 'style' => "background-color:#EBECE4", - ), + array('readonly' => TRUE), TRUE, 'currency', - NULL, TRUE + NULL, + TRUE ); $optionTypes = array('1' => ts('Adjust Pledge Payment Schedule?'), diff --git a/templates/CRM/Pledge/Form/Payment.tpl b/templates/CRM/Pledge/Form/Payment.tpl index e7386081b6..913948349b 100644 --- a/templates/CRM/Pledge/Form/Payment.tpl +++ b/templates/CRM/Pledge/Form/Payment.tpl @@ -32,7 +32,12 @@ {ts}Scheduled Date for Pledge payment.{/ts} {$form.scheduled_amount.label}{$form.currency.html} {$form.scheduled_amount.html} - {if !$pledgePayment}{ts}adjust scheduled amount{help id="adjust-payment-amount"}{/ts}{/if} + {if !$pledgePayment} + + {ts}Adjust scheduled amount{/ts} + + {help id="adjust-payment-amount"} + {/if} @@ -46,10 +51,13 @@ {/literal}