),
),
'duration' => array(
- 'type' => 'text',
+ 'type' => 'number',
'label' => ts('Duration'),
- 'attributes' => array('size' => 4, 'maxlength' => 8),
+ 'attributes' => array('class' => 'four', 'min' => 1),
'required' => FALSE,
),
'location' => array(
$csElement->freeze();
}
- $form->add('text', 'duration', ts('Activity Duration'), array('size' => 4, 'maxlength' => 8));
+ $form->add('number', 'duration', ts('Activity Duration'), ['class' => 'four', 'min' => 1]);
$form->addRule('duration', ts('Please enter the duration as number of minutes (integers only).'), 'positiveInteger');
if ($form->_currentlyViewedContactId) {