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")): ?>