From 3689c64b7b1df1ac1f636ebb6b8b436e4348a8f2 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Thu, 9 Jul 2026 11:01:00 +0200 Subject: [PATCH] make also notizlayout configurable --- application/config/stv.php | 5 +++++ .../components/Stv/Studentenverwaltung/Details/Notizen.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/application/config/stv.php b/application/config/stv.php index d62e58674..d1b364c6e 100644 --- a/application/config/stv.php +++ b/application/config/stv.php @@ -61,7 +61,12 @@ $config['tabs'] = 'notes' => [ //if true, the count of Messages will be shown in the header of the Tab Messages 'showCountNotes' => true, + + //if true: section with following fields will be displayed: 'verfasser', 'bearbeiter', 'von', 'bis' and 'erledigt' 'showErweitert' => true, + + //notizlayout: choose of "classicFas", "twoColumnsFormLeft", twoColumnsFormRight, popupModal" + 'notizLayout' => 'popupModal' ], 'combinePeople' => [ //multitab should only be shown with this length of selection diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js b/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js index d52091cf9..a0b88bdcf 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js @@ -27,7 +27,7 @@ export default { class="overflow-hidden" :endpoint="endpoint" ref="formc" - notiz-layout="popupModal" + :notiz-layout="config.notizLayout" type-id="person_id" :id="modelValue.person_id" show-document @@ -54,7 +54,7 @@ ref="formc" type-id: id to which table the notizdata should be connected... eg. person_id, prestudent_id, uid (for mitarbeiter_uid), projekt_kurzbz, projektphase_id, projekttask_id, bestellung_id, lehreinheit_id, anrechnung_id -notizLayout: "classicFas", "twoColumnsFormLeft", twoColumnsFormRight, popupModal" +notizLayout: "classicFas", "twoColumnsFormLeft", twoColumnsFormRight, popupModal"; is now configurable in config/stv.php showErweitert: if true: section with following fields will be displayed: 'verfasser', 'bearbeiter', 'von', 'bis' and 'erledigt'; is now configurable in config/stv.php @@ -63,7 +63,7 @@ showDocument: if true: section with documentHandling will be displayed showTinyMCE: if true: section with WYSIWYG Editor for Text will be displayed -visibleColumns: list, which fields shoult be showed as default in filter component +visibleColumns: list, which fields should be showed as default in filter component fullVersion: :visibleColumns="['titel','text','bearbeiter','verfasser','von','bis','dokumente','erledigt','notiz_id','notizzuordnung_id','id','lastupdate']"