From 0cb3aa88b8801b156bd0d179ac39f93871de4a24 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 10 Mar 2024 02:24:56 +0000 Subject: [PATCH] bump --- Theme/Backend/equipment-view.tpl.php | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Theme/Backend/equipment-view.tpl.php b/Theme/Backend/equipment-view.tpl.php index 05ec193..8b837bd 100755 --- a/Theme/Backend/equipment-view.tpl.php +++ b/Theme/Backend/equipment-view.tpl.php @@ -28,6 +28,8 @@ $equipment = $this->data['equipment'] ?? new NullEquipment(); $equipmentImage = $this->data['equipmentImage'] ?? new NullMedia(); $equipmentTypes = $this->data['types'] ?? []; +$isNew = $equipment->id === 0; + /** * @var \phpOMS\Views\View $this */ @@ -57,16 +59,6 @@ echo $this->data['nav']->render(); -
- - -
- -
- - -
-
+
- +
@@ -177,7 +169,7 @@ echo $this->data['nav']->render(); getHtml('Type'); ?> getHtml('Responsible'); ?> - data['inspections'] as $inspection) : + data['inspections'] ?? []) as $inspection) : // @todo handle old inspections in the past? maybe use a status?! if ($inspection->next === null) { continue; @@ -202,7 +194,7 @@ echo $this->data['nav']->render(); getHtml('Type'); ?> getHtml('Responsible'); ?> - data['inspections'] as $inspection) : ?> + data['inspections'] ?? []) as $inspection) : ?> date->format('Y-m-d H:i'); ?> printHtml($inspection->type->getL11n()); ?>