aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_vote_list.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-08-20 13:20:38 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commit3ea6154a9e75011c194820456b66fa00f12a55b7 (patch)
treeab8923525fd05aa696f18fa176611800f0eeeea7 /templates/poll_vote_list.html.j2
parentd53e5e61d25405db63cc2e2817186d19dbff8189 (diff)
Style and a11y improvements
Diffstat (limited to 'templates/poll_vote_list.html.j2')
-rw-r--r--templates/poll_vote_list.html.j29
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2
index 54e7d9f..3b6d223 100644
--- a/templates/poll_vote_list.html.j2
+++ b/templates/poll_vote_list.html.j2
@@ -43,10 +43,13 @@
{% endif %}
<div>
{% for voter_name in managed_voter_names %}
- <form action="/poll/{{ poll.id }}/delete_voter" method="post">
+ <form class="delete-voter-container" action="/poll/{{ poll.id }}/delete_voter" method="post">
<input type="hidden" name="voter_code" value="{{ managed_voter_names[voter_name] }}">
- {{ voter_name }}
- <input class="delete-voter-btn" type="submit" value="❌">
+ <span>{{ voter_name }}</span>
+ <input aria-label="Delete voter {{ voter_name }}"
+ class="delete-voter-btn"
+ type="submit"
+ value="❌">
</form>
{% endfor %}
</div> \ No newline at end of file