From 81dce0e2bd0bc2fae2f78c06c26317abef031606 Mon Sep 17 00:00:00 2001 From: ben8 Date: Sat, 17 Jan 2026 15:47:15 +0100 Subject: [PATCH] Design Update #166 --- django/templates/library/detail_quiz.html | 233 +++++++++++++--------- 1 file changed, 140 insertions(+), 93 deletions(-) diff --git a/django/templates/library/detail_quiz.html b/django/templates/library/detail_quiz.html index a97c69b..bd0e712 100644 --- a/django/templates/library/detail_quiz.html +++ b/django/templates/library/detail_quiz.html @@ -4,60 +4,79 @@ {% load static %} -
-
-

{{ quiz.name }}

+
+
+
+ +

+ {{ quiz.name }} +

+ + + -
- -
- {% if quiz.user_id == request.user %} - - - - - - - - - - - - {% endif %} -
- -
- - - - - Quiz duplizieren - - - {% if quiz.questions.count != 0 %} - - - - - - Spielen - - {% endif %} -
-
- - - + +
+ {% if quiz.user_id == request.user %} + + + + bearbeiten + + + + + + + + löschen + + + + + {% endif %} + + + + duplizieren + + + + + + + {% if quiz.questions.count %} + + spielen + + + + + {% endif %} +
+
+ +
- {% if quiz.description %} -

{{ quiz.description }}

- {% endif %} + + + + + + + +
+

Fragen des Quizzes

+
+
+
+ +
{% if detail == True %} @@ -87,47 +106,63 @@
-
-
-
-

Fragen - {% for question in questions %}{% if forloop.last %}({{ forloop.counter }}) {% endif %} {% endfor %} -

-
- {% if quiz.user_id == request.user %} - - Eingabe - - - - Multiple Choice - - - Wahr/Falsch - - - - Reihenfolge - - - Schätzen - +
+
+
+ - - Karte - - {% endif %} -
-
+

+ Fragen + {% for question in questions %}{% if forloop.last %}({{ forloop.counter }}) {% endif %}{% endfor %} +

+ + + + + {% if quiz.user_id == request.user %} +
+ + + + +
+ {% endif %} +
+
+ + + + {% if questions %} @@ -320,6 +355,7 @@
{% endif %}
+
@@ -397,11 +433,20 @@

Quiz-Infos

+ + + +
+ {% if quiz.description %} +

Beschreibung: {{ quiz.description }}

+ {% endif %} +
+
{% if quiz.base_quiz %} -

Bearbeitung: {{ quiz.user_id }}

+

Bearbeitung: {{ quiz.user_id }}

{% else %} -

Autor: {{ quiz.user_id }}

+

Autor: {{ quiz.user_id }}

{% endif %}
@@ -503,8 +548,8 @@ - {% if user.is_authenticated %} {% if quiz.user_id != request.user %} +

Das Quiz kritisieren

@@ -513,6 +558,7 @@
+ {% if user.is_authenticated %}
{% csrf_token %}
@@ -570,8 +616,8 @@ focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> Abschicken - {% endif %} - {% elif quiz.user_id != request.user %} + {% elif not user.is_authenticated %} +

Quiz kritisieren @@ -587,6 +633,7 @@ focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" href="{% url 'accounts:login' %}">Anmelden

{% endif %} + {% endif %}