diff --git a/shiftregister/app/templates/shift.html b/shiftregister/app/templates/shift.html index 7d81140..de22d58 100644 --- a/shiftregister/app/templates/shift.html +++ b/shiftregister/app/templates/shift.html @@ -20,14 +20,14 @@ Dauer: {{ shift.duration }}
Treffpunkt: {{ shift.room.meeting_location|linebreaksbr }}

- {% if shift.room.description %} - Beschreibung: -

{{ shift.room.description|linebreaksbr }}

- {% endif %} - {% if shift.description %} - Zusatzinfo:
-

{{ shift.description|linebreaksbr }}

- {% endif %} +{% if shift.room.description %} + Beschreibung: +

{{ shift.room.description|linebreaksbr }}

+{% endif %} +{% if shift.description %} + Zusatzinfo: +

{{ shift.description|linebreaksbr }}

+{% endif %} {% if can_register and not shift.deleted %}
diff --git a/shiftregister/signage/forms.py b/shiftregister/signage/forms.py index 4dc4d4d..18c2173 100644 --- a/shiftregister/signage/forms.py +++ b/shiftregister/signage/forms.py @@ -2,4 +2,4 @@ from django import forms class TeamBackupForm(forms.Form): - name = forms.CharField(max_length=100) + name = forms.CharField(max_length=100, widget=forms.TextInput(attrs={"class": "input"})) diff --git a/shiftregister/team/templates/partials/shift_box.html b/shiftregister/team/templates/partials/shift_box.html index 61ac683..7e10782 100644 --- a/shiftregister/team/templates/partials/shift_box.html +++ b/shiftregister/team/templates/partials/shift_box.html @@ -7,9 +7,10 @@ Beginn: {{ shift.start_at }}
Dauer: {{ shift.duration }}
Belegung: {{ shift.shiftregistration_set.count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} - {% if shift.teambackup_set.all.count %}
- Backup Teammitglied(er): {%for member in shift.teambackup_set.all%}{{member.name}}, {%endfor%} - {% endif %} +{% if shift.teambackup_set.all.count %} +
+ Backup-Teammitglied(er): {% for member in shift.teambackup_set.all %}{{ member.name }}{% if not forloop.last %}, {% endif %}{% endfor %} +{% endif %}
Details diff --git a/shiftregister/team/templates/shift_detail.html b/shiftregister/team/templates/shift_detail.html index 5ce2c08..271398b 100644 --- a/shiftregister/team/templates/shift_detail.html +++ b/shiftregister/team/templates/shift_detail.html @@ -1,8 +1,9 @@ {% extends "team_base.html" %} {% block title %}Schichtdetails{% endblock %} + {% block content %} -

{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})

+

{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})

{% if shift.description %}
{{ shift.description|linebreaksbr }} @@ -13,17 +14,19 @@
{% for reg in shift.shiftregistration_set.all %}
-
-
- {{ reg.helper.name }} - 📞 - {% if not reg.is_checked_in %} - als angekommen markieren
- {% else %} -
- {% endif %} - helfer abmelden -
+
+ +
+{% if not reg.is_checked_in %} + Als angekommen markieren
+{% else %} + +{% endif %} + Helfer*in abmelden +
{% endfor %} @@ -58,37 +61,42 @@
- {% if shift.teambackup_set.all.count %}
- Backup Teammitglied(er): -
    - {%for member in shift.teambackup_set.all%} -
  • {{member.name}} entfernen
  • - {%endfor%} -
- {% endif %} -
- {% csrf_token %} - {% for field in backup_form%} -
- {% if field.widget_type == 'checkbox' %} -
- -
- {% else %} - -
- {{ field }} -
- {% endif %} - {% for error in field.errors %} -

{{ error }}

- {% endfor %} - {% if field.help_text %} -

{{ field.help_text }}

- {% endif %} -
- {% endfor %} - -
+{% if shift.teambackup_set.all.count %} +
Backup-Teammitglied(er)
+
+{% for member in shift.teambackup_set.all %} +
+
+ {{ member.name }} + entfernen +
+{% endfor %} +
+{% endif %} +
Backup-Teammitglied eintragen
+
+ {% csrf_token %} +{% for field in backup_form %} +
+{% if field.widget_type == 'checkbox' %} +
+ +
+{% else %} + +
+ {{ field }} +
+{% endif %} +{% for error in field.errors %} +

{{ error }}

+{% endfor %} +{% if field.help_text %} +

{{ field.help_text }}

+{% endif %} +
+{% endfor %} + +
{% endblock %}