Skip to content

Commit

Permalink
monitoring: Remove h1 from service/show and feature command forms
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 1, 2015
1 parent aadbbe0 commit 3a27e44
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
Expand Up @@ -63,7 +63,7 @@ public function createElements(array $formData = array())
if ((bool) $this->status->notifications_enabled) {
if ($this->hasPermission('monitoring/command/feature/instance')) {
$notificationDescription = sprintf(
'<a aria-label="%1$s" title="%1$s" href="%2$s" data-base-target="_next">%3$s</a>',
'<a aria-label="%1$s" class="action-link" title="%1$s" href="%2$s" data-base-target="_next">%3$s</a>',
$this->translate('Disable notifications for a specific time on a program-wide basis'),
$this->getView()->href('monitoring/health/disable-notifications'),
$this->translate('Disable temporarily')
Expand Down Expand Up @@ -126,14 +126,15 @@ public function createElements(array $formData = array())
'autosubmit' => true,
'description' => $notificationDescription,
'decorators' => array(
'ViewHelper',
'Errors',
array('Label', array('tag'=>'span', 'separator' => '', 'class' => 'control-label')),
array(
'Description',
array('tag' => 'span', 'class' => 'description', 'escape' => false)
),
'Label',
array('HtmlTag', array('tag' => 'div'))
array(array('labelWrap' => 'HtmlTag'), array('tag' => 'div', 'class' => 'control-label-group')),
array('ViewHelper', array('separator' => '')),
array('Errors', array('separator' => '')),
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group'))
),
'disabled' => $toggleDisabled
)
Expand Down
Expand Up @@ -19,9 +19,7 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm
public function init()
{
$this->setUseFormAutosubmit();
$this->setTitle('Feature Commands');
$this->setAttrib('class', 'inline object-features');
$this->loadDefaultDecorators()->getDecorator('description')->setTag('h2');
}

/**
Expand Down
6 changes: 3 additions & 3 deletions modules/monitoring/application/views/scripts/host/show.phtml
@@ -1,9 +1,9 @@
<?php use Icinga\Data\Filter\Filter; ?>

<div class="controls separated">
<?php if (! $this->compact): ?>
<?= $this->tabs; ?>
<?php endif ?>
<?php if (! $this->compact): ?>
<?= $this->tabs ?>
<?php endif ?>
<?= $this->render('partials/object/host-header.phtml') ?>
<?php
$this->stats = $object->stats;
Expand Down
Expand Up @@ -3,7 +3,6 @@
<?= $this->tabs ?>
<?php endif ?>
<?= $this->render('partials/object/service-header.phtml') ?>
<h1><?= $this->translate('Service detail information') ?></h1>
</div>

<?= $this->render('partials/object/detail-content.phtml') ?>

0 comments on commit 3a27e44

Please sign in to comment.