aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_vote_list.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/poll_vote_list.html.j2')
-rw-r--r--templates/poll_vote_list.html.j252
1 files changed, 26 insertions, 26 deletions
diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2
index ef09af4..47a682f 100644
--- a/templates/poll_vote_list.html.j2
+++ b/templates/poll_vote_list.html.j2
@@ -1,35 +1,35 @@
-<div class="vote-list">
- {% for choice in choices %}
- <div>
- <label for="choice_{{ choice.id }}">
- <input type="checkbox" name="choice_{{ choice.id }}" id="choice_{{ choice.id }}">
- <strong>
- {% include "poll_choice_datetime_range.html.j2" %}
- </strong>
- <span>
- <i>{{ choice.votes_with_value(1) | length }}&nbsp;votes</i>
- </span>
- <div>
- {% if choice.votes_with_value(1) | length != 0 %}
- Voted by: {% for vote in choice.votes_with_value(1) %}
- {{ vote.voter_name }}{% if not loop.last %}, {% endif %}
- {% endfor %}
- {% endif %}
- </div>
- </label>
+<form action="/poll/{{ poll.id }}/vote" method="post">
+ <div class="vote-list">
+ {% for choice in choices %}
+ <div>
+ <label for="choice_{{ choice.id }}">
+ <input type="checkbox" name="choice_{{ choice.id }}" id="choice_{{ choice.id }}">
+ <strong>
+ {% include "poll_choice_datetime_range.html.j2" %}
+ </strong>
+ <span>
+ <i>{{ choice.votes_with_value(1) | length }}&nbsp;votes</i>
+ </span>
+ <div>
+ {% if choice.votes_with_value(1) | length != 0 %}
+ Voted by: {% for vote in choice.votes_with_value(1) %}
+ {{ vote.voter_name }}{% if not loop.last %}, {% endif %}
+ {% endfor %}
+ {% endif %}
+ </div>
+ </label>
+ </div>
+ <p></p>
+ {% endfor %}
</div>
- <p></p>
- {% endfor %}
-</div>
-<div>
- <form action="/poll/{{ poll.id }}/vote" method="post">
+ <div>
<label for="voter_name" hidden>Your name</label>
<input type="text" name="voter_name" placeholder="Your name" required
{% if prefill_voter_name %}value="{{ prefill_voter_name }}"{% endif %}>
<input class="green" type="submit" value="Submit">
- </form>
-</div>
+ </div>
+</form>
{% if managed_voter_names | length != 0 %}
<br>