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