From ef8c2c576043330a7a22d9549284003e57c284bb Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 1 Mar 2024 13:55:25 +0200 Subject: Add possibility to manage own vote --- templates/poll_vote_table.html.j2 | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 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 a7aa434..440f2b7 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -12,7 +12,17 @@ {% for voter_name in voter_names %} - {{ voter_name }} + + {% if voter_name in managed_voter_names %} +
+ + {{ voter_name }} + +
+ {% else %} + {{ voter_name }} + {% endif %} + {% for choice in choices %} {% if selections[(voter_name, choice.id)] == 1 %} @@ -32,10 +42,13 @@ {% endfor %} +
- + + {% for choice in choices %} @@ -43,7 +56,7 @@ {% endfor %} +
- -- cgit v1.3