show shift actions above and below description texts if there is a wall of text
This commit is contained in:
parent
dbadb54321
commit
33d33cfbab
|
@ -0,0 +1,18 @@
|
||||||
|
{% if can_register and not shift.deleted %}
|
||||||
|
<form action="" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ shift_form.as_p }}
|
||||||
|
<input type="submit" class="button is-link" value="Anmelden">
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
{% if is_registered and not shift.deleted %}
|
||||||
|
{% if can_cancel %}
|
||||||
|
<form action="{% url 'cancel' shift.pk %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ shift_form.as_p }}
|
||||||
|
<input type="submit" class="button is-danger is-small" value="Abmelden">
|
||||||
|
</form>
|
||||||
|
{% elif not shift.has_ended %}
|
||||||
|
<div class="content">Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst.</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
|
@ -23,6 +23,9 @@
|
||||||
<strong>Treffpunkt:</strong> {{ shift.room.meeting_location|linebreaksbr }}<br>
|
<strong>Treffpunkt:</strong> {{ shift.room.meeting_location|linebreaksbr }}<br>
|
||||||
<strong>Belegung:</strong> {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}
|
<strong>Belegung:</strong> {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}
|
||||||
</p>
|
</p>
|
||||||
|
{% if shift.room.description|length > 100 or shift.description|length > 100 %}
|
||||||
|
{% include 'partials/shift_detail_buttons.html'%}
|
||||||
|
{% endif %}
|
||||||
{% if shift.room.description %}
|
{% if shift.room.description %}
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<strong>Beschreibung:</strong>
|
<strong>Beschreibung:</strong>
|
||||||
|
@ -36,23 +39,6 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if can_register and not shift.deleted %}
|
{% include 'partials/shift_detail_buttons.html'%}
|
||||||
<form action="" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ shift_form.as_p }}
|
|
||||||
<input type="submit" class="button is-link" value="Anmelden">
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
{% if is_registered and not shift.deleted %}
|
|
||||||
{% if can_cancel %}
|
|
||||||
<form action="{% url 'cancel' shift.pk %}" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ shift_form.as_p }}
|
|
||||||
<input type="submit" class="button is-danger is-small" value="Abmelden">
|
|
||||||
</form>
|
|
||||||
{% elif not shift.has_ended %}
|
|
||||||
<div class="content">Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst.</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue