IcingaCheckbox: Add `hidden attribute to input element

refs #4310
This commit is contained in:
Florian Strohmaier 2021-05-10 10:00:00 +02:00 committed by Johannes Meyer
parent b875b28dea
commit 24c1bb1f8c
1 changed files with 2 additions and 1 deletions

View File

@ -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';