/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
/**
* build select for CiviGrant
*
+ * @param $query
+ *
* @return void
* @access public
*/
* Given a list of conditions in params generate the required
* where clause
*
+ * @param $query
+ *
* @return void
* @access public
*/
*
* @access public
*
+ * @param $form
+ *
* @return void
* @static
*/
$grantType = CRM_Core_OptionGroup::values('grant_type');
$form->add('select', 'grant_type_id', ts('Grant Type'),
- array(
- '' => ts('- any -')) + $grantType
+ array('' => ts('- any -')) + $grantType,
+ FALSE, array('class' => 'crm-select2')
);
$grantStatus = CRM_Core_OptionGroup::values('grant_status');
$form->add('select', 'grant_status_id', ts('Grant Status'),
- array(
- '' => ts('- any -')) + $grantStatus
+ array('' => ts('- any -')) + $grantStatus,
+ FALSE, array('class' => 'crm-select2')
);
$form->addDate('grant_application_received_date_low', ts('App. Received Date - From'), FALSE, array('formatType' => 'searchDate'));
$form->addElement('checkbox', 'grant_decision_date_notset', ts(''), NULL);
- $form->addYesNo('grant_report_received', ts('Grant report received?'));
+ $form->addYesNo('grant_report_received', ts('Grant report received?'), TRUE);
$form->add('text', 'grant_amount_low', ts('Minimum Amount'), array('size' => 8, 'maxlength' => 8));
$form->addRule('grant_amount_low', ts('Please enter a valid money value (e.g. %1).', array(1 => CRM_Utils_Money::format('9.99', ' '))), 'money');