From 5903425f786af5123a518efc46f8ef8b4ccf30e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Tue, 8 Sep 2026 13:49:20 +0200 Subject: [PATCH] Revert "Align lot document upload layout" This reverts commit a31057f0c06e17923ceafdcad501a80a9a8bba93. --- modules/shared/auth/ui/home.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 1e1b235..243b943 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -300,7 +300,7 @@ function auth_format_lager_quantity(float $value): string function auth_render_lager_documents(array $documents, bool $editable, string $scope): string { - $html = '

Dokumente

'; + $html = '

Dokumente

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

Keine Dokumente vorhanden.

'; @@ -325,10 +325,10 @@ function auth_render_lager_documents(array $documents, bool $editable, string $s $comment = (string) ($document['comment'] ?? ''); $html .= '
'; } - $html .= '

Noch keine Dateien ausgewählt.

'; + $html .= '

Noch keine Dateien ausgewählt.

'; $html .= '
'; } - return $html . '
'; + return $html . ''; } function auth_render_lager_historical_lots(array $lagerProducts): string @@ -352,9 +352,8 @@ function auth_render_lager_historical_lots(array $lagerProducts): string . 'MHD: ' . auth_format_lager_date($lot['expiry_date'] ?? null) . '
' . 'Hersteller: ' . auth_escape_html((string) ($lot['manufacturer_name'] ?? 'Nicht hinterlegt')) . '
' . 'Hersteller-Chargennummer: ' . auth_escape_html((string) ($lot['manufacturer_lot_number'] ?? 'Nicht hinterlegt')) . '

' - . '

' . auth_render_lager_documents($lot['documents'] ?? [], false, 'historical-' . (int) ($lot['lot_id'] ?? 0)) - . ''; + . ''; } $html[] = ''; } @@ -446,7 +445,7 @@ function auth_render_lager_content(array $lagerProducts, array $lagerArtikel, ar . '
' . auth_render_lager_open_lots($lagerProducts, $manufacturerOptions) . '
' . '
' . '
Aktive Charge
' - . '

Naurua-Chargennummer:
Aktueller Bestand:
Eingangsmenge:
Hersteller:
Hersteller-Chargennummer:
Herstellungsdatum:
MHD:
Einkaufsdatum:

' . auth_render_lager_documents([], false, 'current-read') + . '

Naurua-Chargennummer:
Aktueller Bestand:
Eingangsmenge:
Hersteller:
Hersteller-Chargennummer:
Herstellungsdatum:
MHD:
Einkaufsdatum:

' . auth_render_lager_documents([], false, 'current-read') . '
' . '