portal: bij 0 stemmingen zeggen waarom, fixes #19

This commit is contained in:
Kiara Grouwstra 2023-03-10 23:34:10 +01:00
parent ca843af670
commit 62b9b5517d
Signed by: kiara
GPG Key ID: 47D3B7604FFCA83A
1 changed files with 34 additions and 26 deletions

View File

@ -3,35 +3,43 @@
<div style="font-family: sans-serif;">
<h1>Stemmingen</h1>
<table>
<tr>
<th>
stemming
</th>
<th>
gebruiker
</th>
<th>
wachtwoord
</th>
</tr>
<% @votes.each do |vote| %>
<% if @votes.length > 0 %>
<table>
<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 %>#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>
<th>
stemming
</th>
<th>
gebruiker
</th>
<th>
wachtwoord
</th>
</tr>
<% @votes.each do |vote| %>
<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 %>#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 %>
</table>
<p>
Tip: je stemt telt zodra je hebt geduwd op 'cast this ballot'!
</p>
<% else %>
<% if @user.vote %>
<p>De stemmingen zijn nog niet ingeladen. Mocht je laat zijn aangemeld, dan zijn we hier misschien nog mee bezig.</p>
<% else %>
<p>Je staat niet gemarkeerd als stem-gerechtigd. Neem contact op (zie mail) als dit niet klopt!</p>
<% end %>
</table>
<p>
Tip: je stemt telt zodra je hebt geduwd op 'cast this ballot'!
</p>
<% end %>
<br>