Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
9b4c3efe8e
|
@ -32,8 +32,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
||||||
->setValidators(array(
|
->setValidators(array(
|
||||||
'NotEmpty',
|
'NotEmpty',
|
||||||
array('date', false, array('HH:mm')),
|
array('date', false, array('HH:mm')),
|
||||||
array('regex', false, array('/^[0-9:]+$/', 'messages' => 'Invalid character entered'))))
|
array('regex', false, array('/^[0-2][0-3]:[0-5][0-9]$/', 'messages' => 'Time format should be HH:mm'))
|
||||||
->setDecorators(array('ViewHelper'));
|
))->setDecorators(array('ViewHelper'));
|
||||||
$startTime->setAttrib('alt', 'time');
|
$startTime->setAttrib('alt', 'time');
|
||||||
$this->addElement($startTime);
|
$this->addElement($startTime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue