}
$form->addGroup($genderOptions, 'gender_id', ts('Gender'))->setAttribute('allowClear', TRUE);
- $form->add('text', 'age_low', ts('Min Age'));
+ $form->add('text', 'age_low', ts('Min Age'), array('size' => 6));
$form->addRule('age_low', ts('Please enter a positive integer'), 'positiveInteger');
- $form->add('text', 'age_high', ts('Max Age'));
+ $form->add('text', 'age_high', ts('Max Age'), array('size' => 6));
$form->addRule('age_high', ts('Please enter a positive integer'), 'positiveInteger');
$form->addDate('age_asof_date', ts('Age as of Date'), FALSE, array('formatType' => 'searchDate'));
+--------------------------------------------------------------------+
*}
<div id="demographics" class="form-item">
- <table class="form-layout">
- <tr>
- <tr><td><label>{ts}Birth Dates{/ts}</label></td></tr>
- {include file="CRM/Core/DateRange.tpl" fieldName="birth_date" from='_low' to='_high'}
- </tr>
- <tr>
- <tr><td><label>{ts}Age{/ts}</label></td></tr>
- {include file="CRM/Core/AgeRange.tpl" fieldName="age" from='_low' to='_high' date='_asof_date'}
- </tr>
- <tr>
- <td>
- {$form.is_deceased.label}<br />
- {$form.is_deceased.html}
- </td>
- </tr>
- <tr>
- <tr><td><label>{ts}Deceased Dates{/ts}</label></td></tr>
- {include file="CRM/Core/DateRange.tpl" fieldName="deceased_date" from='_low' to='_high'}
- </tr>
- <tr>
- <td>
- {$form.gender_id.label}<br />
- {$form.gender_id.html}
- </td>
- </tr>
- </table>
+ <table class="form-layout">
+ <tr>
+ <td>
+ <label>{ts}Birth Dates{/ts}</label>
+ </td>
+ </tr>
+ <tr>
+ {include file="CRM/Core/DateRange.tpl" fieldName="birth_date" from='_low' to='_high'}
+ </tr>
+ <tr>
+ <td>
+ <label>{ts}Age{/ts}</label>
+ </td>
+ </tr>
+ <tr>
+ {include file="CRM/Core/AgeRange.tpl" fieldName="age" from='_low' to='_high' date='_asof_date'}
+ </tr>
+ <tr>
+ <td>
+ {$form.is_deceased.label}<br />
+ {$form.is_deceased.html}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label>{ts}Deceased Dates{/ts}</label>
+ </td>
+ </tr>
+ <tr>
+ {include file="CRM/Core/DateRange.tpl" fieldName="deceased_date" from='_low' to='_high'}
+ </tr>
+ <tr>
+ <td>
+ {$form.gender_id.label}<br />
+ {$form.gender_id.html}
+ </td>
+ </tr>
+ </table>
</div>