From cb1804111f4daee7b10e509582584cb8ae9d13ee Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 24 Apr 2017 13:15:04 +0200 Subject: [PATCH] Controllers: whitespace fixes --- .../controllers/ServicetemplatesController.php | 7 ++++--- .../Director/Web/Controller/SimpleController.php | 16 ++++++++-------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/application/controllers/ServicetemplatesController.php b/application/controllers/ServicetemplatesController.php index 33f9ad1c..09efe747 100644 --- a/application/controllers/ServicetemplatesController.php +++ b/application/controllers/ServicetemplatesController.php @@ -7,7 +7,6 @@ use Icinga\Module\Director\Web\Table\ServiceApplyRulesTable; use Icinga\Module\Director\Web\Table\ServicesOnHostsTable; use Icinga\Module\Director\Web\Table\ServiceTemplatesTable; use ipl\Html\Link; -use ipl\Web\Chart\Donut; class ServicetemplatesController extends SimpleController { @@ -15,8 +14,9 @@ class ServicetemplatesController extends SimpleController { $this->addSingleTab($this->translate('Service Templates')); if ($this->quickSearch()) { - + // Not yet } + $this->addTitle($this->translate('All your Service Templates')); $this->actions()->add( $this->getBackToDashboardLink() @@ -42,8 +42,9 @@ class ServicetemplatesController extends SimpleController { $this->addSingleTab($this->translate('Service Apply Rules')); if ($this->quickSearch()) { - + // Not yet } + $this->addTitle($this->translate('All your Service Apply Rules')); $this->actions()->add( $this->getBackToDashboardLink() diff --git a/library/Director/Web/Controller/SimpleController.php b/library/Director/Web/Controller/SimpleController.php index 529c645e..c526656c 100644 --- a/library/Director/Web/Controller/SimpleController.php +++ b/library/Director/Web/Controller/SimpleController.php @@ -62,14 +62,14 @@ abstract class SimpleController extends ActionController ]); $form->add( - Html::tag('input', [ - 'type' => 'text', - 'name' => 'q', - 'value' => $search, - 'placeholder' => $this->translate('Search...'), - 'class' => 'search' - ] - )); + Html::tag('input', [ + 'type' => 'text', + 'name' => 'q', + 'value' => $search, + 'placeholder' => $this->translate('Search...'), + 'class' => 'search' + ]) + ); $this->controls()->add($form);