From 9527fc10cf5a9e0c9e6b98b0387b87e57894713f Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Sat, 27 Jun 2026 11:31:47 +0200 Subject: [PATCH] Fix of the Nav Bar for the Terminplaner Module --- Web/modules/terminplaner/blueprint.py | 9 +++-- Web/templates/base.html | 47 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Web/modules/terminplaner/blueprint.py b/Web/modules/terminplaner/blueprint.py index 1d9b25f..7ad2568 100644 --- a/Web/modules/terminplaner/blueprint.py +++ b/Web/modules/terminplaner/blueprint.py @@ -215,7 +215,8 @@ def client(appointment_id): current_user=session.get('username', ''), tenant_id=_current_tenant_id(), can_view_booking_names=can_view_booking_names, - custom_fields=custom_fields + custom_fields=custom_fields, + appointment_module_enabled=cfg.MODULES.is_enabled('terminplan') ) if appointment_service.book_slot(appointment_id, start_daytime, username, custom=custom_answers): @@ -239,7 +240,8 @@ def client(appointment_id): tenant_id=_current_tenant_id(), can_view_booking_names=can_view_booking_names, custom_fields=custom_fields, - appointment_item=appointment_item + appointment_item=appointment_item, + appointment_module_enabled=cfg.MODULES.is_enabled('terminplan') ) @@ -356,6 +358,7 @@ def configure(): add_to_calendar=add_to_calendar, email_service_enabled=cfg.EMAIL_ENABLED, title=title, + appointment_module_enabled=cfg.MODULES.is_enabled('terminplan') ) return render_template( @@ -366,6 +369,7 @@ def configure(): add_to_calendar=False, email_service_enabled=cfg.EMAIL_ENABLED, title=None, + appointment_module_enabled=cfg.MODULES.is_enabled('terminplan') ) @@ -553,4 +557,5 @@ def main(): current_user=current_user, upcoming_events=upcoming_events, tenant_id=tenant_id, + appointment_module_enabled=cfg.MODULES.is_enabled('terminplan') ) \ No newline at end of file diff --git a/Web/templates/base.html b/Web/templates/base.html index 15b69d9..636b306 100755 --- a/Web/templates/base.html +++ b/Web/templates/base.html @@ -1144,6 +1144,17 @@ +
+ {% if 'username' in session %} +
+
+ + +
+
+ {% if current_tenant_db %} + {{ current_tenant_db }} + {% endif %} + {{ session['username'] }} + + {% endif %} +