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()); ?>