From 78ac75423c842f9a273ecdeded43b7b08361cdca Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Apr 2022 03:05:05 +0200 Subject: [PATCH] Fix spelling and make spacing in templates more consistent --- shiftregister/app/templates/helper_base.html | 12 +++--- shiftregister/app/templates/register.html | 8 ++-- shiftregister/app/templates/shift.html | 40 +++++++++---------- shiftregister/app/templates/shiftlist.html | 10 ++--- .../app/templates/wait_confirmation.html | 6 +-- .../team/templates/helper_detail.html | 10 ++--- .../team/templates/shift_detail.html | 8 ++-- shiftregister/team/templates/shift_list.html | 7 ++-- .../team/templates/shift_overview.html | 24 ++++++----- shiftregister/team/templates/team_base.html | 9 +++-- templates/base.html | 10 +++-- 11 files changed, 74 insertions(+), 70 deletions(-) diff --git a/shiftregister/app/templates/helper_base.html b/shiftregister/app/templates/helper_base.html index fc19041..feb6e2a 100644 --- a/shiftregister/app/templates/helper_base.html +++ b/shiftregister/app/templates/helper_base.html @@ -2,12 +2,12 @@ {% block title %}Help!{% endblock %} {% block body %} -{% if helper%} -Hallo {{helper.name}} -{%else%} -Anmelden -{%endif%} +{% if helper %} +Hallo {{ helper.name }} +{% else %} +Anmelden +{% endif %}
{% block content %}{% endblock %}
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/shiftregister/app/templates/register.html b/shiftregister/app/templates/register.html index 8e91ff8..fd81ef8 100644 --- a/shiftregister/app/templates/register.html +++ b/shiftregister/app/templates/register.html @@ -4,8 +4,8 @@ {% block content %}
{% csrf_token %} -{{form.as_p}} -

Wir nutzen deine Handynummer um dir Benachrictigungen zu deinen Schichten zu schicken. Wir loeschen alle Daten 7 Tage nach dem Festival.

- + {{ form.as_p }} +

Wir nutzen deine Handynummer, um dir Benachrichtigungen zu deinen Schichten zu schicken. Wir löschen alle Daten 7 Tage nach dem Festival.

+
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/shiftregister/app/templates/shift.html b/shiftregister/app/templates/shift.html index e22f991..d32f73b 100644 --- a/shiftregister/app/templates/shift.html +++ b/shiftregister/app/templates/shift.html @@ -2,28 +2,28 @@ {% block title %}Schichtansicht{% endblock %} {% block content %} -{%if is_registered%} +{% if is_registered %}
Du bist zu dieser Schicht angemeldet
-{%endif%} -Ort: {{shift.room.name}}
-Start: {{shift.start_at}}
-Dauer: {{shift.duration}}
-{%if can_register%} +{% endif %} +Ort: {{ shift.room.name }}
+Start: {{ shift.start_at }}
+Dauer: {{ shift.duration }}
+{% if can_register %}
{% csrf_token %} -{{shift_form.as_p}} - + {{ shift_form.as_p }} +
-{%endif%} -{% if is_registered%} -{% if can_cancel %} -
- {% csrf_token %} -{{shift_form.as_p}} - -
-{%else%} -Bitte wende dich an den Infopoint falls du es nicht zu deiner Schicht schaffst. -{%endif%} {% endif %} -{% endblock %} \ No newline at end of file +{% if is_registered %} +{% if can_cancel %} +
+ {% csrf_token %} + {{ shift_form.as_p }} + +
+{% else %} +Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst. +{% endif %} +{% endif %} +{% endblock %} diff --git a/shiftregister/app/templates/shiftlist.html b/shiftregister/app/templates/shiftlist.html index 68447e2..3e6360c 100644 --- a/shiftregister/app/templates/shiftlist.html +++ b/shiftregister/app/templates/shiftlist.html @@ -4,20 +4,20 @@ {% block content %} {% if current_shift %}

Aktuelle Schicht

-{{current_shift.shift.room.name }} {{current_shift.shift.start_at}}Details +{{ current_shift.shift.room.name }} {{ current_shift.shift.start_at }}Details {% endif %} {% if my_shifts %}

Meine Schichten

{% endif %} -

Freie Scchichten:

+

Freie Schichten:

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/shiftregister/app/templates/wait_confirmation.html b/shiftregister/app/templates/wait_confirmation.html index 8f167d2..1e48c3d 100644 --- a/shiftregister/app/templates/wait_confirmation.html +++ b/shiftregister/app/templates/wait_confirmation.html @@ -2,6 +2,6 @@ {% block title %}Registrierung{% endblock %} {% block content %} -Hallo {{helper.name}},
-wir haben dir eine SMS an {{helper.phone}} mit einem Bestaetigunslink geschickt. Sobald du diesen anklickst kann es losgehen! -{% endblock %} \ No newline at end of file +Hallo {{ helper.name }},
+wir haben dir eine SMS an {{ helper.phone }} mit einem Bestätigungslink geschickt. Sobald du diesen anklickst, kann es losgehen! +{% endblock %} diff --git a/shiftregister/team/templates/helper_detail.html b/shiftregister/team/templates/helper_detail.html index 124ab24..bc60450 100644 --- a/shiftregister/team/templates/helper_detail.html +++ b/shiftregister/team/templates/helper_detail.html @@ -2,12 +2,12 @@ {% block title %}Schichtdetails{% endblock %} {% block content %} -

{{helper.name}}

-Telefon: {{helper.phone}} +

{{ helper.name }}

+Telefon: {{ helper.phone }}

Schichten:

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/shiftregister/team/templates/shift_detail.html b/shiftregister/team/templates/shift_detail.html index 67da4e0..9b52721 100644 --- a/shiftregister/team/templates/shift_detail.html +++ b/shiftregister/team/templates/shift_detail.html @@ -2,11 +2,11 @@ {% block title %}Schichtdetails{% endblock %} {% block content %} -{{ shift.room.name }} {{shift.start_at}}({{shift.shiftregistration_set.count}}/{{shift.room.required_helpers}}) +{{ shift.room.name }} {{ shift.start_at }}({{ shift.shiftregistration_set.count }}/{{ shift.room.required_helpers }})

Helfer

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/shiftregister/team/templates/shift_list.html b/shiftregister/team/templates/shift_list.html index 64a17b1..a2e8274 100644 --- a/shiftregister/team/templates/shift_list.html +++ b/shiftregister/team/templates/shift_list.html @@ -4,9 +4,8 @@ {% block content %}

Schichten

- {% endblock %} diff --git a/shiftregister/team/templates/shift_overview.html b/shiftregister/team/templates/shift_overview.html index c9e9129..78de7fe 100644 --- a/shiftregister/team/templates/shift_overview.html +++ b/shiftregister/team/templates/shift_overview.html @@ -1,17 +1,19 @@ {% extends "team_base.html" %} -{% block title %}Schichtuebersicht{% endblock %} +{% block title %}Schichtübersicht{% endblock %} {% block content %} -{%if running_shifts%} +{% if running_shifts %}

Laufende Schichten

-{%endif%} -

Naechste Schichten

-{%for shift in next_shifts%} -
  • {{ shift.room.name }} {{shift.start_at}}({{shift.shiftregistration_set.count}}/{{shift.room.required_helpers}})Details
  • -{%endfor%} -{% endblock %} \ No newline at end of file +{% endif %} +

    Nächste Schichten

    + +{% endblock %} diff --git a/shiftregister/team/templates/team_base.html b/shiftregister/team/templates/team_base.html index c1c4d54..53ab2b9 100644 --- a/shiftregister/team/templates/team_base.html +++ b/shiftregister/team/templates/team_base.html @@ -3,10 +3,11 @@ {% block title %}Team{% endblock %} {% block body %}
    + Schichtuebersicht + Alle Schichten + +
    {% block content %}{% endblock %}
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/base.html b/templates/base.html index 1a9c68c..0e359e9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,11 +1,13 @@ + + {% block title %}Help!{% endblock %} + - -{%block body%} -{%endblock%} +{% block body %} +{% endblock %} - \ No newline at end of file +