can make show as many hours long in duration as wanted.
This commit is contained in:
parent
54398b8c32
commit
ddddcc9375
8 changed files with 31 additions and 90 deletions
|
@ -38,10 +38,12 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
|||
'value' => '1:00',
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
'NotEmpty',
|
||||
array('date', false, array('HH:mm', 'messages' => 'Show must be under 24 hours'))
|
||||
)
|
||||
'validators' => array(
|
||||
'NotEmpty',
|
||||
array('regex', false,
|
||||
array('/^\d+:[0-5][0-9]$/',
|
||||
'messages' => 'enter a duration: HH:mm'))
|
||||
)
|
||||
));
|
||||
|
||||
// Add repeats element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue