monitoring: Support tab navigation in monitoring health

This commit is contained in:
Eric Lippmann 2016-01-18 12:57:56 +01:00
parent 9968fb9011
commit bb5017d54d
3 changed files with 8 additions and 9 deletions

View File

@ -26,9 +26,7 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
public function init()
{
$this->setUseFormAutosubmit();
$this->setTitle($this->translate('Feature Commands'));
$this->setAttrib('class', 'inline instance-features');
$this->loadDefaultDecorators()->getDecorator('description')->setTag('h2');
}
/**

View File

@ -11,7 +11,7 @@ if (! $this->compact): ?>
<div class="content processinfo grid">
<div class="boxview">
<div class="box process col-1-2">
<h2><?= $this->translate('Process Info') ?></h2>
<h2 tabindex="0"><?= $this->translate('Process Info') ?></h2>
<table class="avp">
<tbody>
<tr>
@ -76,7 +76,8 @@ if (! $this->compact): ?>
<?php endif ?>
</div>
<div class="box features col-1-2">
<?= $this->toggleFeaturesForm; ?>
<h2 tabindex="0"><?= $this->translate('Feature Commands') ?></h2>
<?= $this->toggleFeaturesForm ?>
</div>
</div>
</div>

View File

@ -11,15 +11,15 @@ if (! $this->compact): ?>
<div class="content stats grid">
<div class="boxview">
<div class="box stats col-1-2">
<h3><?= $this->unhandledProblems ?> <?= $this->translate('Unhandled Problems:') ?>
<span class="badge badge-critical"> <?= $this->unhandledProblems ?> </span>
<h3 tabindex="0"><?= $this->unhandledProblems ?> <?= $this->translate('Unhandled Problems:') ?>
<span class="badge state-critical"> <?= $this->unhandledProblems ?> </span>
</h3>
<table class="avp">
<tbody>
<tr>
<th> <?= $this->translate('Service Problems:') ?> </th>
<td>
<span class="badge badge-critical">
<span class="badge state-critical">
<?=
$this->qlink(
$this->unhandledServiceProblems,
@ -34,7 +34,7 @@ if (! $this->compact): ?>
<tr>
<th> <?= $this->translate('Host Problems:') ?> </th>
<td>
<span class="badge badge-critical">
<span class="badge state-critical">
<?=
$this->qlink(
$this->unhandledhostProblems,
@ -50,7 +50,7 @@ if (! $this->compact): ?>
</table>
<br>
<h3 class="tinystatesummary" data-base-target="_next">
<h3 tabindex="0" class="tinystatesummary" data-base-target="_next">
<?php $this->stats = $hoststats ?>
<?= $this->render('list/components/hostssummary.phtml') ?>
</h3>