From 484e14c445a6805bf4524a4d92e082bfa8dbed91 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 24 Oct 2016 21:46:18 +0000 Subject: [PATCH] ServiceController: prepare for an overview site... ...not much content here... yet --- application/controllers/ServiceController.php | 7 ++++++ application/views/scripts/service/index.phtml | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 application/views/scripts/service/index.phtml diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index c7ca924b..dfa2439e 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -99,6 +99,13 @@ class ServiceController extends ObjectController } } + public function indexAction() + { + $object = $this->loadObject(); + $title = $this->view->title = $object->object_name; + $this->singleTab($this->translate('Icinga Service Template')); + } + public function editAction() { $object = $this->object; diff --git a/application/views/scripts/service/index.phtml b/application/views/scripts/service/index.phtml new file mode 100644 index 00000000..e75ecc92 --- /dev/null +++ b/application/views/scripts/service/index.phtml @@ -0,0 +1,22 @@ +
+tabs ?> +

escape($this->title) ?>

+ +actionLinks ?> + +
+ +
+This is a service template. [As it has no command You might want to assign it: + +