From 8996786bb3d8554c36eb21e820ee48c9f47b9fd6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 27 May 2025 14:08:34 +0000 Subject: [PATCH] Address db/add new tool type field --- Layout/default/Preorder/Index.php | 36 +++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index 40837db6e..b47d9e3bb 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -27,6 +27,14 @@ $pagination_entity_name = "Vorbestellungen"; max-width: 650px; } + .tr-highlight { + background-color: #a0eaaf !important; + } + + .tr-highlight .status { + border-radius: unset !important; + } + .is-billed-button { padding:6px; padding-left: 8px; @@ -487,8 +495,32 @@ $pagination_entity_name = "Vorbestellungen"; - - + status_id == $status->id && $status->code == 245) { + $hasStatus245 = true; + break; + } + } + + $requiredFlagIds = [1, 3, 4, 5]; + $allFlagsChecked = true; + + foreach ($requiredFlagIds as $flagId) { + if (!array_key_exists($flagId, $preorder->statusflags) || + !$preorder->statusflags[$flagId]->value || + !$preorder->statusflags[$flagId]->value->value) { + $allFlagsChecked = false; + break; + } + } + + $doHighlight = $hasStatus245 && $allFlagsChecked; + + ?> + " id="preorder-id?>"> is(["preorderfront"]) && !$me->is("preorderreadonly")): ?>