From 2f00bb9c51082cd08a7f46f0fbd26091b4ad1a2f Mon Sep 17 00:00:00 2001 From: Mukesh Ram Date: Tue, 13 Mar 2018 11:05:18 +0530 Subject: [PATCH] Call labels from logic instead of static --- CRM/Grant/BAO/Query.php | 8 ++++---- templates/CRM/Grant/Form/Search/Common.tpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CRM/Grant/BAO/Query.php b/CRM/Grant/BAO/Query.php index ec4c2e8973..54ed50e608 100644 --- a/CRM/Grant/BAO/Query.php +++ b/CRM/Grant/BAO/Query.php @@ -320,22 +320,22 @@ class CRM_Grant_BAO_Query extends CRM_Core_BAO_Query { $form->addDate('grant_application_received_date_low', ts('App. Received Date - From'), FALSE, array('formatType' => 'searchDate')); $form->addDate('grant_application_received_date_high', ts('To'), FALSE, array('formatType' => 'searchDate')); - $form->addElement('checkbox', 'grant_application_received_notset', '', NULL); + $form->addElement('checkbox', 'grant_application_received_notset', ts('Date is not set'), NULL); $form->addDate('grant_money_transfer_date_low', ts('Money Sent Date - From'), FALSE, array('formatType' => 'searchDate')); $form->addDate('grant_money_transfer_date_high', ts('To'), FALSE, array('formatType' => 'searchDate')); - $form->addElement('checkbox', 'grant_money_transfer_date_notset', '', NULL); + $form->addElement('checkbox', 'grant_money_transfer_date_notset', ts('Date is not set'), NULL); $form->addDate('grant_due_date_low', ts('Report Due Date - From'), FALSE, array('formatType' => 'searchDate')); $form->addDate('grant_due_date_high', ts('To'), FALSE, array('formatType' => 'searchDate')); - $form->addElement('checkbox', 'grant_due_date_notset', '', NULL); + $form->addElement('checkbox', 'grant_due_date_notset', ts('Date is not set'), NULL); $form->addDate('grant_decision_date_low', ts('Grant Decision Date - From'), FALSE, array('formatType' => 'searchDate')); $form->addDate('grant_decision_date_high', ts('To'), FALSE, array('formatType' => 'searchDate')); - $form->addElement('checkbox', 'grant_decision_date_notset', '', NULL); + $form->addElement('checkbox', 'grant_decision_date_notset', ts('Date is not set'), NULL); $form->addYesNo('grant_report_received', ts('Grant report received?'), TRUE); diff --git a/templates/CRM/Grant/Form/Search/Common.tpl b/templates/CRM/Grant/Form/Search/Common.tpl index ba257cdd2e..710be206ac 100644 --- a/templates/CRM/Grant/Form/Search/Common.tpl +++ b/templates/CRM/Grant/Form/Search/Common.tpl @@ -55,7 +55,7 @@ {$form.grant_application_received_date_high.label}
{include file="CRM/common/jcalendar.tpl" elementName=grant_application_received_date_high} -  {$form.grant_application_received_notset.html}  {ts}Date is not set{/ts} +  {$form.grant_application_received_notset.html}  {$form.grant_application_received_notset.label} @@ -66,7 +66,7 @@ {$form.grant_decision_date_high.label}
{include file="CRM/common/jcalendar.tpl" elementName=grant_decision_date_high} -  {$form.grant_decision_date_notset.html}  {ts}Date is not set{/ts} +  {$form.grant_decision_date_notset.html}  {$form.grant_decision_date_notset.label} @@ -77,7 +77,7 @@ {$form.grant_money_transfer_date_high.label}
{include file="CRM/common/jcalendar.tpl" elementName=grant_money_transfer_date_high} -  {$form.grant_money_transfer_date_notset.html}  {ts}Date is not set{/ts} +  {$form.grant_money_transfer_date_notset.html}  {$form.grant_money_transfer_date_notset.label} @@ -88,7 +88,7 @@ {$form.grant_due_date_high.label}
{include file="CRM/common/jcalendar.tpl" elementName=grant_due_date_high} -  {$form.grant_due_date_notset.html}  {ts}Date is not set{/ts} +  {$form.grant_due_date_notset.html}  {$form.grant_due_date_notset.label} {if $grantGroupTree} -- 2.25.1