FormDateTime: Enable datetime-picker widget by default

This commit is contained in:
Johannes Meyer 2021-04-15 16:26:49 +02:00
parent 6c3c8a3e38
commit 0a0ae95d6c

View File

@ -49,7 +49,7 @@ class Zend_View_Helper_FormDateTime extends Zend_View_Helper_FormElement
$type = $attribs['local'] === true ? 'datetime-local' : 'datetime'; $type = $attribs['local'] === true ? 'datetime-local' : 'datetime';
unset($attribs['local']); // Unset local to not render it again in $this->_htmlAttribs($attribs) unset($attribs['local']); // Unset local to not render it again in $this->_htmlAttribs($attribs)
$html5 = sprintf( $html5 = sprintf(
'<input type="%s" name="%s" id="%s" step="1" value="%s"%s%s%s', '<input type="%s" data-use-datetime-picker name="%s" id="%s" step="1" value="%s"%s%s%s',
$type, $type,
$this->view->escape($name), $this->view->escape($name),
$this->view->escape($id), $this->view->escape($id),