From 2fb843560046241b359efde2047ac0a6775915d8 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 22 Jun 2025 14:34:21 +0200 Subject: [PATCH] feat: added some responsiveness --- ticketsystem/templates/ticketsystem/base.html | 62 ++- ticketsystem/templates/ticketsystem/faq.html | 2 - .../templates/ticketsystem/index.html | 433 ++++++++++-------- 3 files changed, 285 insertions(+), 212 deletions(-) diff --git a/ticketsystem/templates/ticketsystem/base.html b/ticketsystem/templates/ticketsystem/base.html index aff47e7..11596d3 100644 --- a/ticketsystem/templates/ticketsystem/base.html +++ b/ticketsystem/templates/ticketsystem/base.html @@ -3,6 +3,7 @@ + {% block title %}TicketSystem{% endblock %} @@ -10,26 +11,61 @@ + -
+
{% block content %}{% endblock %}
+ + + - + \ No newline at end of file diff --git a/ticketsystem/templates/ticketsystem/faq.html b/ticketsystem/templates/ticketsystem/faq.html index bfe5abd..c811adb 100644 --- a/ticketsystem/templates/ticketsystem/faq.html +++ b/ticketsystem/templates/ticketsystem/faq.html @@ -1,7 +1,6 @@ {% extends "ticketsystem/base.html" %} {% load static %} {% block content %} -
@@ -47,7 +46,6 @@

Noch keine FAQs vorhanden.

{% endfor %} -
diff --git a/ticketsystem/templates/ticketsystem/index.html b/ticketsystem/templates/ticketsystem/index.html index 32e93f6..bb6db34 100644 --- a/ticketsystem/templates/ticketsystem/index.html +++ b/ticketsystem/templates/ticketsystem/index.html @@ -2,167 +2,168 @@ {% block content %} {% if messages %} -
+
{% for message in messages %} -
+
{{ message }}
{% endfor %}
{% endif %} -
- -
+ +
+
+

🎫 Ticket-Übersicht

+

Verwalte und verfolge alle deine Tickets

+
+ +
+ +
+
+
-

🎫 Ticket-Übersicht

-

Verwalte und verfolge alle deine Tickets

-
- -
- -
-
- -
-
- - - - {% if request.GET.assigned_to %} - - {% endif %} - {% if request.GET.course %}{% endif %} - {% if search_query %}{% endif %} -
-
- -
- - {% if request.GET.assigned_to == user.id|stringformat:'s' %} - - - πŸ‘€ Meine Tickets βœ“ - - {% else %} - - - πŸ‘€ Meine Tickets - +
+ + + + {% if request.GET.assigned_to %} + {% endif %} -
- -
- - - - + {% if request.GET.course %}{% endif %} + {% if search_query %}{% endif %} + +
+ +
+ + {% if request.GET.assigned_to == user.id|stringformat:'s' %} + + + πŸ‘€ Meine Tickets βœ“ + + {% else %} + + + πŸ‘€ Meine Tickets + + {% endif %} +
+ +
+
+ + + + {% if selected_status %}{% endif %} + {% if request.GET.assigned_to %} + + {% endif %} + {% if search_query %}{% endif %} +
+
+ +
+
+ +
+ {% if selected_status %}{% endif %} + {% if selected_course %}{% endif %} {% if request.GET.assigned_to %} {% endif %} - {% if search_query %}{% endif %} - -
- -
-
- -
- - {% if selected_status %}{% endif %} - {% if selected_course %}{% endif %} - {% if request.GET.assigned_to %} - - {% endif %} - -
-
+ +
+ +
+
+ + {% if selected_status or request.GET.assigned_to or search_query %} +
+
+ Aktive Filter: + {% if selected_status %} + + Status: + {% for value, label in status_choices %} + {% if value == selected_status %}{{ label }}{% endif %} + {% endfor %} + Γ— + + {% endif %} + {% if request.GET.assigned_to %} + + Meine Tickets + Γ— + + {% endif %} + {% if search_query %} + + Suche: "{{ search_query }}" + Γ— + + {% endif %} + {% if selected_course %} + + Kurs: + {% for course in courses %} + {% if course.id|stringformat:'s' == selected_course %}{{ course.code }}{% endif %} + {% endfor %} + Γ— + + {% endif %} + Alle Filter entfernen
- - {% if selected_status or request.GET.assigned_to or search_query %} -
-
- Aktive Filter: - {% if selected_status %} - - Status: - {% for value, label in status_choices %} - {% if value == selected_status %}{{ label }}{% endif %} - {% endfor %} - Γ— - - {% endif %} - {% if request.GET.assigned_to %} - - Meine Tickets - Γ— - - {% endif %} - {% if search_query %} - - Suche: "{{ search_query }}" - Γ— - - {% endif %} - {% if selected_course %} - - Kurs: - {% for course in courses %} - {% if course.id|stringformat:'s' == selected_course %}{{ course.code }}{% endif %} - {% endfor %} - Γ— - - {% endif %} - Alle Filter entfernen -
-
- {% endif %} -
- - {% if tickets %} -
+ {% endif %} +
+ + {% if tickets %} + +