mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
586fa3120b
commit
7644888f25
@ -45,6 +45,7 @@ class RolesController extends ActionController
|
|||||||
'title' => $this->translate('Roles'),
|
'title' => $this->translate('Roles'),
|
||||||
'url' => 'roles'
|
'url' => 'roles'
|
||||||
));
|
));
|
||||||
|
$this->getTabs()->setTitle($this->translate('Role Configuration'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,8 +1,20 @@
|
|||||||
<div class="controls" data-base-target="_main">
|
<div class="controls" data-base-target="_main">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
<h1><?= $this->translate('Roles') ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1 tabindex="-1" id="roles-index">
|
||||||
|
<?= $this->translate('Roles') ?>
|
||||||
|
</h1>
|
||||||
|
<div class="skip-links skip-links-inline">
|
||||||
|
<h2 class="sr-only"><?= $this->translate('Skip Links'); ?></h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a tabindex="0" href="#roles-index-new">
|
||||||
|
<?= t('Skip To Create New Role'); ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
|
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
|
||||||
<?= $this->translate('No roles found.') ?>
|
<?= $this->translate('No roles found.') ?>
|
||||||
@ -64,6 +76,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<h2 tabindex="-1" id="roles-index-new" class="sr-only">
|
||||||
|
<?= $this->translate('Create New Role'); ?>
|
||||||
|
</h2>
|
||||||
<a data-base-target="_next" href="<?= $this->href('roles/new') ?>">
|
<a data-base-target="_next" href="<?= $this->href('roles/new') ?>">
|
||||||
<?= $this->translate('New Role') ?>
|
<?= $this->translate('New Role') ?>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs->showOnlyCloseButton() ?>
|
<?= $tabs->showOnlyCloseButton() ?>
|
||||||
<h1><?= $this->translate('New Role') ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1 tabindex="-1" id="roles-new">
|
||||||
|
<?= $this->translate('New Role') ?>
|
||||||
|
</h1>
|
||||||
<?= $form ?>
|
<?= $form ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs->showOnlyCloseButton() ?>
|
<?= $tabs->showOnlyCloseButton() ?>
|
||||||
<h1><?= sprintf($this->translate('Remove Role %s'), $name) ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1 tabindex="-1" id="roles-remove">
|
||||||
|
<?= sprintf($this->translate('Remove Role %s'), $name) ?>
|
||||||
|
</h1>
|
||||||
<?= $form ?>
|
<?= $form ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs->showOnlyCloseButton() ?>
|
<?= $tabs->showOnlyCloseButton() ?>
|
||||||
<h1><?= sprintf($this->translate('Update Role %s'), $name) ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1 tabindex="-1" id="roles-update">
|
||||||
|
<?= sprintf($this->translate('Update Role %s'), $name) ?>
|
||||||
|
</h1>
|
||||||
<?= $form ?>
|
<?= $form ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user