can type in time

This commit is contained in:
naomiaro 2010-12-08 16:06:47 -05:00
parent 8dbc07e352
commit 8b404f3c62
1 changed files with 23 additions and 13 deletions

View File

@ -41,6 +41,18 @@ class Application_Form_AddShow extends Zend_Form
)
));
// Add start time element
$this->addElement('text', 'start_time', array(
'label' => 'Start Time:',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(
'NotEmpty',
array('date', false, array('HH:mm'))
)
));
/*
$this->addElement(
'select',
'start_time',
@ -55,20 +67,18 @@ class Application_Form_AddShow extends Zend_Form
"02:00" => "02:00",
),
));
*/
$this->addElement(
'select',
'duration',
array(
'label' => 'Duration:',
'required' => true,
'multiOptions' => array(
"00:30" => "00:30",
"01:00" => "01:00",
"01:30" => "01:30",
"02:00" => "02:00",
),
));
// Add duration element
$this->addElement('text', 'duration', array(
'label' => 'Duration:',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(
'NotEmpty',
array('date', false, array('HH:mm'))
)
));
$this->addElement(
'multiCheckbox',