Header: Add header semantic to roles configuration

refs #7976
This commit is contained in:
Marius Hein 2015-02-13 16:19:28 +01:00
parent 586fa3120b
commit 7644888f25
5 changed files with 26 additions and 4 deletions

View File

@ -45,6 +45,7 @@ class RolesController extends ActionController
'title' => $this->translate('Roles'),
'url' => 'roles'
));
$this->getTabs()->setTitle($this->translate('Role Configuration'));
}
/**

View File

@ -1,8 +1,20 @@
<div class="controls" data-base-target="_main">
<?= $tabs ?>
<h1><?= $this->translate('Roles') ?></h1>
</div>
<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>
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
<?= $this->translate('No roles found.') ?>
@ -64,6 +76,9 @@
</tbody>
</table>
<?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') ?>">
<?= $this->translate('New Role') ?>
</a>

View File

@ -1,7 +1,9 @@
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
<h1><?= $this->translate('New Role') ?></h1>
</div>
<div class="content">
<h1 tabindex="-1" id="roles-new">
<?= $this->translate('New Role') ?>
</h1>
<?= $form ?>
</div>

View File

@ -1,7 +1,9 @@
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
<h1><?= sprintf($this->translate('Remove Role %s'), $name) ?></h1>
</div>
<div class="content">
<h1 tabindex="-1" id="roles-remove">
<?= sprintf($this->translate('Remove Role %s'), $name) ?>
</h1>
<?= $form ?>
</div>

View File

@ -1,7 +1,9 @@
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
<h1><?= sprintf($this->translate('Update Role %s'), $name) ?></h1>
</div>
<div class="content">
<h1 tabindex="-1" id="roles-update">
<?= sprintf($this->translate('Update Role %s'), $name) ?>
</h1>
<?= $form ?>
</div>