From 377e5a97f62d80a7c47c55358f6e1cd3ccedef17 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 4 Jun 2024 14:01:08 +0300 Subject: Improve table scrolling ux --- templates/poll_vote_table.html.j2 | 117 ++++++++++++++++++++------------------ 1 file changed, 61 insertions(+), 56 deletions(-) (limited to 'templates') diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index a93ebfa..1fe6019 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -1,63 +1,68 @@ +
- - - {% for choice in choices %} - - {% endfor %} - - {% for voter_name in voter_names %} - - + + + {% for choice in choices %} + + {% endfor %} + + + + {% for voter_name in voter_names %} + + + {% for choice in choices %} + {% if selections[(voter_name, choice.id)] == 1 %} + + {% elif selections[(voter_name, choice.id)] == 0 %} + {% else %} - {{ voter_name }} + {% endif %} - - {% for choice in choices %} - {% if selections[(voter_name, choice.id)] == 1 %} - - {% elif selections[(voter_name, choice.id)] == 0 %} - - {% else %} - - {% endif %} + {% endfor %} + {% endfor %} - - {% endfor %} - - - - - {% for choice in choices %} - - {% endfor %} - - - + + + + + {% for choice in choices %} + + {% endfor %} + + + +
- {% include "poll_choice_datetime_range.html.j2" %} - - {% if choice.id in most_voted_choice_ids %}👑{% endif %} - {{ choice.votes_with_value(1) | length }} votes - -
- {% if voter_name in managed_voter_names %} -
- +
+ {% include "poll_choice_datetime_range.html.j2" %} + + {% if choice.id in most_voted_choice_ids %}👑{% endif %} + {{ choice.votes_with_value(1) | length }} votes + +
+ {% if voter_name in managed_voter_names %} + + + {{ voter_name }} + + + {% else %} {{ voter_name }} - - + {% endif %} + + + + + + ?? + - - - - - ?? -
- - - - - -
+ + + + + +
- +
-- cgit v1.3