$this->addElement('text', 'amount_granted', ts('Amount Granted'));
$this->addRule('amount_granted', ts('Please enter a valid amount.'), 'money');
- $this->addDate('decision_date', ts('Grant Decision'), FALSE, array('formatType' => 'custom'));
+ $this->add('datepicker', 'decision_date', ts('Grant Decision'), [], FALSE, ['time' => FALSE]);
$this->assign('elements', array('status_id', 'amount_granted', 'decision_date'));
$this->assign('totalSelectedGrants', count($this->_grantIds));
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{* Update Grants *}
+{* Update Grants Via Search Actions *}
<div class="crm-block crm-form-block crm-grants-update-form-block">
<p>{ts}Enter values for the fields you wish to update. Leave fields blank to preserve existing values.{/ts}</p>
<table class="form-layout-compressed">
{foreach from=$elements item=element}
<tr class="crm-contact-custom-search-form-row-{$element}">
<td class="label">{$form.$element.label}</td>
- {if $element eq 'decision_date'}
- <td>{include file="CRM/common/jcalendar.tpl" elementName=decision_date}<br />
- <span class="description">{ts}Date on which the grant decision was finalized.{/ts}</span></td>
- {else}
- <td>{$form.$element.html}</td>
- {/if}
+ <td>{$form.$element.html}</td>
</tr>
{/foreach}
</table>
<p>{ts 1=$totalSelectedGrants}Number of selected grants: %1{/ts}</p>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
-</div><!-- /.crm-form-block -->
+</div>