shiftregister/shiftregister/feedback/templates/feedback.html

50 lines
1.5 KiB
HTML

{% extends "helper_base.html" %}
{% block title %}Danke :){% endblock %}
{% block content %}
{% if party_info %}
{% autoescape off %}
{{ party_info }}
{% endautoescape %}
<hr>
{% endif %}
<div class="content">
Bitte teil uns hierüber mit, ob du zum Helfifest kommst.
Vergiss nicht, deine Angaben mit dem <strong>Speichern</strong>-Button unten abzuschicken.
</div>
<form action="" method="post">
{% csrf_token %}
{% for field in form %}
<div class="field">
{% if field.widget_type == 'checkbox' %}
<div class="control">
<label class="checkbox" for="{{ field.id_for_label }}">{{ field }} {{ field.label }}</label>
</div>
{% elif field.widget_type == 'radioselect' %}
<label class="label">{{ field.label }}</label>
<div class="control">
{% for radio in field %}
{% if radio.choice_label|cut:"-" != "" %}
<label class="radio" id="{{ radio.id_for_label }}">{{ radio.tag }} {{ radio.choice_label }}</label>
{% endif %}
{% endfor %}
</div>
{% else %}
<label class="label" for="{{ field.id_for_label }}">{{ field.label }}</label>
<div class="control">
{{ field }}
</div>
{% endif %}
{% for error in field.errors %}
<p class="help is-danger">{{ error }}</p>
{% endfor %}
{% if field.help_text %}
<p class="help">{{ field.help_text }}</p>
{% endif %}
</div>
{% endfor %}
<button class="button is-link" type="submit">Speichern</button>
</form>
{% endblock %}