chore: add csrf protection for changes to registration state
parent
fb58e1db77
commit
063313f87b
@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ action|default:"Aktion bestätigen" }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3 class="title">{{ action|default:"Aktion bestätigen" }}</h3>
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
<button class="button is-{{ button_style|default:"danger" }} is-small" type="submit">{{ button_text|default:"Bestätigen" }}</button>
|
||||
</form>
|
||||
<a class="button mt-3" href="{% url 'team:shift' reg.shift.pk %}">Zurück</a>
|
||||
{% endblock %}
|
@ -1,12 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Helfer*in wirklich sperren?{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3 class="title">Helfer*in wirklich sperren?</h3>
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
<button class="button is-danger is-small" type="submit">Schicht als "nicht angetreten" markieren und Helfer*in sperren</button>
|
||||
</form>
|
||||
<a class="button mt-3" href="{% url 'team:shift' reg.shift.pk %}">Zurück</a>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue