diff --git a/application/forms/Security/RoleForm.php b/application/forms/Security/RoleForm.php
index 54ce8b8e6..1a73f8735 100644
--- a/application/forms/Security/RoleForm.php
+++ b/application/forms/Security/RoleForm.php
@@ -174,9 +174,21 @@ class RoleForm extends RepositoryForm
foreach ($this->providedPermissions as $moduleName => $permissionList) {
$this->sortPermissions($permissionList);
- $elements = ['permission_header'];
+ $elements = [$moduleName . '_header'];
+ $this->addElement(
+ 'note',
+ $moduleName . '_header',
+ [
+ 'decorators' => ['ViewHelper'],
+ 'value' => '
' . ($moduleName !== 'application'
+ ? sprintf($this->translate('Module: %s'), $moduleName)
+ : 'Icinga Web 2') . '
'
+ ]
+ );
+
+ $elements[] = 'permission_header';
$this->addElement('note', 'permission_header', [
- 'value' => '' . $this->translate('Permissions') . '
'
+ 'value' => '' . $this->translate('Permissions') . '
'
]);
$hasFullPerm = false;
@@ -205,7 +217,7 @@ class RoleForm extends RepositoryForm
if (isset($this->providedRestrictions[$moduleName])) {
$elements[] = 'restriction_header';
$this->addElement('note', 'restriction_header', [
- 'value' => '' . $this->translate('Restrictions') . '
'
+ 'value' => '' . $this->translate('Restrictions') . '
'
]);
foreach ($this->providedRestrictions[$moduleName] as $name => $spec) {
@@ -225,12 +237,13 @@ class RoleForm extends RepositoryForm
}
$this->addDisplayGroup($elements, $moduleName . '_elements', [
- 'legend' => $moduleName !== 'application'
- ? sprintf($this->translate('Module: %s'), $moduleName)
- : 'Icinga Web 2',
'decorators' => [
'FormElements',
- ['Fieldset', ['class' => 'collapsible', 'data-toggle-element' => 'legend']]
+ ['Fieldset', [
+ 'class' => 'collapsible',
+ 'data-toggle-element' => 'h3',
+ 'data-visible-height' => 64
+ ]]
]
]);
}