From 38a72a97be85f179494f8a55e471cf09166fa7bd Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 22 Apr 2022 17:23:25 +0200 Subject: [PATCH] Style shift detail --- .../templates/partials/shift_listitem.html | 3 +- shiftregister/app/templates/shift.html | 33 ++++++++++--------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/shiftregister/app/templates/partials/shift_listitem.html b/shiftregister/app/templates/partials/shift_listitem.html index 9a7564d..30d5d46 100644 --- a/shiftregister/app/templates/partials/shift_listitem.html +++ b/shiftregister/app/templates/partials/shift_listitem.html @@ -2,7 +2,8 @@
Ort: {{ shift.room.name }}
- Beginn: {{ shift.start_at }} + Beginn: {{ shift.start_at }}
+ Dauer: {{ shift.duration }}
{% if registered %} diff --git a/shiftregister/app/templates/shift.html b/shiftregister/app/templates/shift.html index 3c4d7c1..a5ced05 100644 --- a/shiftregister/app/templates/shift.html +++ b/shiftregister/app/templates/shift.html @@ -1,30 +1,33 @@ {% extends "helper_base.html" %} {% block title %}Schichtansicht{% endblock %} + {% block content %}
{% if is_registered %} -
Du bist zu dieser Schicht angemeldet
+
Du bist zu dieser Schicht angemeldet
{% endif %} -Ort: {{ shift.room.name }}
-Start: {{ shift.start_at }}
-Dauer: {{ shift.duration }}
+
+ Ort: {{ shift.room.name }}
+ Beginn: {{ shift.start_at }}
+ Dauer: {{ shift.duration }} +
{% if can_register %} -
- {% csrf_token %} - {{ shift_form.as_p }} - -
+
+ {% csrf_token %} + {{ shift_form.as_p }} + +
{% endif %} {% if is_registered %} {% if can_cancel %} -
- {% csrf_token %} - {{ shift_form.as_p }} - -
+
+ {% csrf_token %} + {{ shift_form.as_p }} + +
{% elif not shift.has_ended %} -Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst. +
Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst.
{% endif %} {% endif %}