Compare commits
2 Commits
ab249df9ff
...
33d33cfbab
Author | SHA1 | Date |
---|---|---|
Andreas (@xAndy) Zimmermann | 33d33cfbab | 2 years ago |
Andreas (@xAndy) Zimmermann | dbadb54321 | 2 years ago |
@ -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 %}
|
Loading…
Reference in New Issue