mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
IcingaCheckbox: Add `hidden attribute to input element
refs #4310 (cherry picked from commit 24c1bb1f8cc63e811fc60d0157a895de9ab3569f)
This commit is contained in:
parent
00ff11ea9f
commit
9da047ffaf
@ -11,7 +11,8 @@ class IcingaCheckbox extends \Zend_View_Helper_FormCheckbox
|
||||
$attribs['id'] = $this->view->protectId('icingaCheckbox_' . $name);
|
||||
}
|
||||
|
||||
$attribs['class'] = (isset($attribs['class']) ? $attribs['class'] . ' ' : '') . 'sr-only';
|
||||
$attribs['class'] = (isset($attribs['class']) ? $attribs['class'] : '');
|
||||
$attribs['hidden'] = true;
|
||||
$html = parent::formCheckbox($name, $value, $attribs, $checkedOptions);
|
||||
|
||||
$class = 'toggle-switch';
|
||||
|
Loading…
x
Reference in New Issue
Block a user