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,19 +67,17 @@ 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',
array(
'label' => 'Duration:', 'label' => 'Duration:',
'required' => true, 'required' => true,
'multiOptions' => array( 'filters' => array('StringTrim'),
"00:30" => "00:30", 'validators' => array(
"01:00" => "01:00", 'NotEmpty',
"01:30" => "01:30", array('date', false, array('HH:mm'))
"02:00" => "02:00", )
),
)); ));
$this->addElement( $this->addElement(