From 480bd00a54425766cccd8664ffbc25c3cfd6764d Mon Sep 17 00:00:00 2001 From: Aiirondev Date: Fri, 26 Jun 2026 17:15:43 +0200 Subject: [PATCH] further itegration of the new view of the User --- Web/templates/termin_client.html | 36 +++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/Web/templates/termin_client.html b/Web/templates/termin_client.html index 64ef825..871df78 100644 --- a/Web/templates/termin_client.html +++ b/Web/templates/termin_client.html @@ -134,20 +134,39 @@ {% for booking in available.slots_booked %} - {% if booking is not mapping %} - {{ booking[0] }} + {% if booking is mapping %} + {{ booking.start }} + {% else %} + {{ booking[0] }} + {% endif %} + - {{ booking[1] }} + + {% if booking is mapping %} + {{ booking.name }} + {% else %} + {{ booking[1] }} + {% endif %} + - {% if booking|length > 2 and booking[2] %} - {% for answer in booking[2] %} + {% set answers = none %} + {% if booking is mapping %} + {# Versucht alle gängigen Bezeichnungen für das Antwort-Array zu treffen #} + {% set answers = booking.custom or booking.custom_fields or booking.custom_answers %} + {% elif booking|length > 2 %} + {% set answers = booking[2] %} + {% endif %} + + {% if answers %} + {% for answer in answers %} {{ answer if answer else '-'|safe }} {% endfor %} {% else %} + {# Fallback: Zeige Striche, wenn keine Antworten da sind #} {% for field in custom_fields %} - {% endfor %} @@ -156,15 +175,16 @@
- - + + + +
- {% endif %} {% endfor %}