mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
FormDateTime: Enable datetime-picker widget by default
This commit is contained in:
parent
6c3c8a3e38
commit
0a0ae95d6c
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user