From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- application/controllers/TimeperiodController.php | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 application/controllers/TimeperiodController.php (limited to 'application/controllers/TimeperiodController.php') diff --git a/application/controllers/TimeperiodController.php b/application/controllers/TimeperiodController.php new file mode 100644 index 0000000..82c7749 --- /dev/null +++ b/application/controllers/TimeperiodController.php @@ -0,0 +1,33 @@ +object; + $this->tabs()->activate('ranges'); + $this->addTitle($this->translate('Time period ranges')); + $form = IcingaTimePeriodRangeForm::load() + ->setTimePeriod($object); + + if (null !== ($name = $this->params->get('range'))) { + $this->addBackLink($this->url()->without('range')); + $form->loadObject([ + 'timeperiod_id' => $object->get('id'), + 'range_key' => $name, + 'range_type' => $this->params->get('range_type') + ]); + } + + $this->content()->add($form->handleRequest()); + IcingaTimePeriodRangeTable::load($object)->renderTo($this); + } +} -- cgit v1.2.3