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() public function init()
{ {
$this->setUseFormAutosubmit(); $this->setUseFormAutosubmit();
$this->setTitle($this->translate('Feature Commands'));
$this->setAttrib('class', 'inline instance-features'); $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="content processinfo grid">
<div class="boxview"> <div class="boxview">
<div class="box process col-1-2"> <div class="box process col-1-2">
<h2><?= $this->translate('Process Info') ?></h2> <h2 tabindex="0"><?= $this->translate('Process Info') ?></h2>
<table class="avp"> <table class="avp">
<tbody> <tbody>
<tr> <tr>
@ -76,7 +76,8 @@ if (! $this->compact): ?>
<?php endif ?> <?php endif ?>
</div> </div>
<div class="box features col-1-2"> <div class="box features col-1-2">
<?= $this->toggleFeaturesForm; ?> <h2 tabindex="0"><?= $this->translate('Feature Commands') ?></h2>
<?= $this->toggleFeaturesForm ?>
</div> </div>
</div> </div>
</div> </div>

View File

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