mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +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['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);
|
$html = parent::formCheckbox($name, $value, $attribs, $checkedOptions);
|
||||||
|
|
||||||
$class = 'toggle-switch';
|
$class = 'toggle-switch';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user