can type in time
This commit is contained in:
parent
8dbc07e352
commit
8b404f3c62
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue