brutaldon-interfaccia-web-m.../brutaldon/templates/polls/new_partial.html

28 lines
914 B
HTML

{% load sanitizer %}
{% load taglinks %}
{% load static %}
<form method="POST" action="{% url "vote" toot.id %}">
{% csrf_token %}
{% for option in toot.poll.options %}
<div class="field">
{% if toot.poll.multiple %}
<label class="checkbox">
<input type="checkbox"
name="poll-multiple"
value="{{ forloop.counter0 }}">
{{ option.title }}
</label>
{% else %}
<label class="radio">
<input type="radio"
name="poll-single"
value="{{ forloop.counter0 }}">
{{ option.title }}
</label>
{% endif %}
</div>
{% endfor %}
<input type="submit" class="button is-primary" name="Vote" value="Vote">
</form>