Header: Add header and skip links to resource configuration

refs #7976
This commit is contained in:
Marius Hein 2015-02-12 17:10:38 +01:00
parent 513de11f20
commit 069e86c2fd
4 changed files with 48 additions and 10 deletions

View File

@ -2,12 +2,32 @@
<?= $tabs; ?> <?= $tabs; ?>
</div> </div>
<div class="content" data-base-target="_next"> <div class="content" data-base-target="_next">
<h1 tabindex="0" id="resource-index">
<?= t('Resource Configuration'); ?>
</h1>
<div class="skip-links skip-links-inline">
<nav>
<ul>
<li>
<a tabindex="0" href="#resource-edit-table">
<?= t('Skip To Existing Resources'); ?>
</a>
</li>
</ul>
</nav>
</div>
<h2 tabindex="0" id="resource-new-resource" class="sr-only">
<?= t('Create New Resource'); ?>
</h2>
<p> <p>
<a href="<?= $this->href('/config/createresource'); ?>"> <a href="<?= $this->href('/config/createresource'); ?>">
<?= $this->icon('plus', null, array('aria-hidden' => 'true')); ?> <?= $this->translate('Create A New Resource'); ?> <?= $this->icon('plus', null, array('aria-hidden' => 'true')); ?> <?= $this->translate('Create A New Resource'); ?>
</a> </a>
</p> </p>
<table class="action"> <h2 tabindex="0" id="resource-edit-resource" class="sr-only">
<?= t('Edit Existing Resources'); ?>
</h2>
<table class="action" id="resource-edit-table">
<thead> <thead>
<th><?= $this->translate('Resource'); ?></th> <th><?= $this->translate('Resource'); ?></th>
<th style="width: 5em"><?= $this->translate('Remove'); ?></th> <th style="width: 5em"><?= $this->translate('Remove'); ?></th>

View File

@ -1,6 +1,12 @@
<div class="controls"> <div class="controls">
<?= $this->tabs->showOnlyCloseButton() ?> <?= $this->tabs->showOnlyCloseButton() ?>
</div> </div>
<h4><?= $this->translate('Create A New Resource'); ?></h4> <div class="content">
<h1 tabindex="0" id="resource-create">
<?= $this->translate('Create A New Resource'); ?>
</h1>
<p><?= $this->translate('Resources are entities that provide data to Icinga Web 2.'); ?></p> <p><?= $this->translate('Resources are entities that provide data to Icinga Web 2.'); ?></p>
<div>
<?= $form; ?> <?= $form; ?>
</div>
</div>

View File

@ -1,5 +1,11 @@
<div class="controls"> <div class="controls">
<?= $this->tabs->showOnlyCloseButton() ?> <?= $this->tabs->showOnlyCloseButton() ?>
</div> </div>
<h4><?= $this->translate('Edit Existing Resource'); ?></h4> <div class="content">
<h1 tabindex="0" id="resource-edit">
<?= $this->translate('Edit Existing Resource'); ?>
</h1>
<div>
<?= $form; ?> <?= $form; ?>
</div>
</div>

View File

@ -1,5 +1,11 @@
<div class="controls"> <div class="controls">
<?= $this->tabs->showOnlyCloseButton() ?> <?= $this->tabs->showOnlyCloseButton() ?>
</div> </div>
<h4><?= $this->translate('Remove Existing Resource'); ?></h4> <div class="content">
<h1 tabindex="0" id="resource-remove">
<?= $this->translate('Remove Existing Resource'); ?>
</h1>
<div>
<?= $form; ?> <?= $form; ?>
</div>
</div>