From 65b11d9d029558cacc7b4270dd7eaa2f1f63439e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 29 Feb 2024 09:35:55 +0200 Subject: Fix issue where an empty vote submission would not visually show --- templates/poll_vote_table.html.j2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'templates/poll_vote_table.html.j2') diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index bfba968..072d17a 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -16,18 +16,22 @@ {% endfor %} - {% for voter in choices_by_voter %} + {% for voter_name in voter_names %} - {{ voter.name }} - {% for voted in voter.votes %} - {% if voted %} + {{ voter_name }} + {% for choice in choices %} + {% if selections[(voter_name, choice.id)] == 1 %} - {% else %} + {% elif selections[(voter_name, choice.id)] == 0 %} + {% else %} + + ?? + {% endif %} {% endfor %} -- cgit v1.3