From d1b9e89df3391e82988ec217634451cc7005861a Mon Sep 17 00:00:00 2001 From: Moritz Weinmann Date: Mon, 22 Jun 2026 11:25:15 +0200 Subject: [PATCH] knowledgecenter: tab layout for category form + fix post discussion crash categories_cardform.php now uses a 3-tab layout (Allgemein / Berechtigungen / Unterkategorien) instead of a content+sidebar layout. The permissions section spans full width with a 6-column grid: Mandanten/Abteilungen/Rollen each in 2 cols, Einrichtungen/Fachbereiche each in 3 cols for more space. post_cardform.php: the Diskussion tab crashed with a fatal require_once when the forum module doesn't exist. Now guarded with file_exists() and shows a placeholder message for new posts and missing modules. Co-Authored-By: Claude Sonnet 4.6 --- .../Views/categories_cardform.php | 464 +++++++++--------- .../Views/post_cardform.php | 10 +- 2 files changed, 247 insertions(+), 227 deletions(-) diff --git a/module/knowledgecenter_update/Views/categories_cardform.php b/module/knowledgecenter_update/Views/categories_cardform.php index 793ee95..a8b8685 100644 --- a/module/knowledgecenter_update/Views/categories_cardform.php +++ b/module/knowledgecenter_update/Views/categories_cardform.php @@ -231,251 +231,255 @@ while ($row = mysqli_fetch_assoc($resultParents)) { } $parentCount = count($parentCategories); ?> -
+ -
- +
+ +
+ +
+ + + + + +
+
+ + + + + +
+
-
-
- + +
+
+
-
- +
+ $lang): + $trans = $translations[$lang['code']]; + ?> +
+
+
+ +
+
+ +
+ +
+ Bildvorschau + +
+
+
+
+ +
+
+
-
- $lang): - $trans = $translations[$lang['code']]; + + +
+ + + + + + + + + + + + -
-
-
- -
-
- -
- -
- Bildvorschau - -
- +
-
-
- -
-
- -
- - - -
- -
-

get("connected_subcategories") ?>

- - -
    - -
  • - - get("no_connected_subcategories") ?> -
  • - - -
  • -
    - - - - - -
    - +
    + get("connected_subcategories") ?> () + 0): ?> + +
+ +

get("not_connected_as_subcategory") ?>

+ + get("last_change_on") ?> +

format($timestamp) ?> -

- - -
-

get("available_categories") ?>

- - -
    - -
  • - get("all_available_categories_used") ?> -
  • - - -
  • -
    - - - - -
    -
  • - - -
-
-
- - -
-
-
- -
-
- - - - - - - - -
-
-
- - -
- - -
- -
-
- -
- -
- -
- -
-

get("permissions_and_filters") ?>

- - - - - -
- - - -
- get("connected_subcategories") ?> () - 0): ?> - - -

get("not_connected_as_subcategory") ?>

-
- get("last_change_on") ?> -

- format($timestamp) ?> - -

+
+
+ + + +
+
+
+

get("mandants") ?>

+ +
+
+

get("departments") ?>

+ +
+
+

get("roles") ?>

+ +
+
+

Einrichtungen

+ +
+
+

Fachbereiche

+ +
+
+
+ + +
+
+
+

get("connected_subcategories") ?>

+ +
    + +
  • + get("no_connected_subcategories") ?> +
  • + + +
  • +
    + + + + +
    + +
  • + + +
- +
+

get("available_categories") ?>

+ +
    + +
  • + get("all_available_categories_used") ?> +
  • + + +
  • +
    + + + + +
    +
  • + + +
+
+
+
@@ -484,6 +488,15 @@ $parentCount = count($parentCategories);