From 0d03de8ff26ce0b35ca97cd0a9e1b1e2d19c0e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Tue, 8 Sep 2026 12:05:13 +0200 Subject: [PATCH] Hide lot document edit segment in view mode --- modules/shared/auth/ui/home.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 274e7ed..e15c386 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -300,8 +300,9 @@ function auth_format_lager_quantity(float $value): string function auth_render_lager_documents(array $documents, bool $editable, string $scope): string { - $segmentState = $editable ? ' sg-card-segment--gray hidden data-lager-edit-documents="' . auth_escape_html($scope) . '"' : ''; - $html = '

Dokumente

'; + $segmentClass = $editable ? ' sg-card-segment--gray' : ''; + $segmentState = $editable ? ' hidden data-lager-edit-documents="' . auth_escape_html($scope) . '"' : ''; + $html = '

Dokumente

'; if (!$editable) { $html .= '
'; if ($documents === []) {