From b467b98d1df6c5c88a615c51cbb5f1fb43f2ac85 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 2 Feb 2015 17:52:13 -0500 Subject: [PATCH] CRM-15906 - Related js cleanup --- CRM/Pledge/Form/Payment.php | 8 +++----- templates/CRM/Pledge/Form/Payment.tpl | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) 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} -- 2.25.1