diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/poll_vote_table.html.j2 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index bfba968..072d17a 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -16,18 +16,22 @@ </th> {% endfor %} </tr> - {% for voter in choices_by_voter %} + {% for voter_name in voter_names %} <tr> - <td>{{ voter.name }}</td> - {% for voted in voter.votes %} - {% if voted %} + <td>{{ voter_name }}</td> + {% for choice in choices %} + {% if selections[(voter_name, choice.id)] == 1 %} <td> <input type="checkbox" checked disabled> </td> - {% else %} + {% elif selections[(voter_name, choice.id)] == 0 %} <td> <input type="checkbox" disabled> </td> + {% else %} + <td> + ?? + </td> {% endif %} {% endfor %} </tr> |
