voting portal: table, fixes #21

This commit is contained in:
Kiara Grouwstra 2023-03-10 23:20:55 +01:00
parent a5af44212d
commit a06b352229
Signed by: kiara
GPG Key ID: 47D3B7604FFCA83A
1 changed files with 24 additions and 8 deletions

View File

@ -3,16 +3,32 @@
<div style="font-family: sans-serif;">
<h1>Stemmingen</h1>
(als dit niet vanzelf invult: user id <%= @user.id %>)
<ul>
<table>
<tr>
<th>
stemming
</th>
<th>
gebruiker
</th>
<th>
wachtwoord
</th>
</tr>
<% @votes.each do |vote| %>
<li>
<a href="https://stemmen.bij1.org/helios/e/<%= vote.election_slug %>/vote#id_voter_id=<%= vote.user_id %>&id_password=<%= vote.voter_password %>"><%= vote.election_slug %></a>
(wachtwoord: <%= vote.voter_password %>)
</li>
<tr>
<td>
<a href="https://stemmen.bij1.org/helios/e/<%= vote.election_slug %>/vote#id_voter_id=<%= vote.user_id %>&id_password=<%= vote.voter_password %>"><%= vote.election_slug %></a>
</td>
<td>
<%= @user.id %>
</td>
<td>
<%= vote.voter_password %>
</td>
</tr>
<% end %>
</ul>
</table>
<p>
Tip: je stemt telt zodra je hebt geduwd op 'cast this ballot'!
</p>