From 0e129ae56ad04bc59b2026c40f3b54d6c23b35ee Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sat, 21 Mar 2026 21:04:30 +0000 Subject: [PATCH] Fix Vorlagen editor: working preview tab and improved layout - Fix preview bug: preview event handlers were never attached when Summernote failed to load (fallback returned early at line 240) - Restructure layout with Bootstrap tabs (Editor | Vorschau) instead of stacked editor+hidden preview - Preview loads automatically when switching to the Vorschau tab - Editor content getter works in all modes (Summernote, code, fallback) - Editor now uses full viewport height for more editing space - Variables sidebar gets 3 cols (was 4) giving editor 9 cols (was 8) Co-Authored-By: Claude Opus 4.6 --- app/templates/stiftung/vorlage_editor.html | 342 +++++++++++---------- 1 file changed, 181 insertions(+), 161 deletions(-) diff --git a/app/templates/stiftung/vorlage_editor.html b/app/templates/stiftung/vorlage_editor.html index 2d3f3db..427df9d 100644 --- a/app/templates/stiftung/vorlage_editor.html +++ b/app/templates/stiftung/vorlage_editor.html @@ -9,13 +9,13 @@ {% endblock %} @@ -66,7 +71,7 @@
- Zurück zur Liste + Zurück {% if hat_original %}
-
- -
- - {% csrf_token %} -
- - -
- - - + + - -