From b6bc5c5794b4df182175da34e6b08298084c0324 Mon Sep 17 00:00:00 2001 From: Jan T Date: Wed, 28 Feb 2024 17:32:01 +0200 Subject: Initial commit --- templates/poll_vote_table.html.j2 | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/poll_vote_table.html.j2 (limited to 'templates/poll_vote_table.html.j2') diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 new file mode 100644 index 0000000..bfba968 --- /dev/null +++ b/templates/poll_vote_table.html.j2 @@ -0,0 +1,51 @@ + + + + {% for choice in choices %} + + {% endfor %} + + {% for voter in choices_by_voter %} + + + {% for voted in voter.votes %} + {% if voted %} + + {% else %} + + {% endif %} + {% endfor %} + + {% endfor %} + + + + + {% for choice in choices %} + + {% endfor %} + + +
+ {{ choice.start_datetime.strftime("%a %d.%m") }} + + {% if now.year != choice.start_datetime.year %}.{{choice.start_datetime.year}}{% endif %} + + + {{ choice.start_datetime.strftime("%H:%M") }} – {{ choice.end_datetime.strftime("%H:%M") }} + + + {{ choice.votes | length }} votes + +
{{ voter.name }} + + + +
+ + + + +
+ + -- cgit v1.3