Massive changes but I have to go to sleep now

This commit is contained in:
2020-12-05 06:05:56 +01:00
parent 56d3f9875c
commit 9531dadd69
16 changed files with 377 additions and 94 deletions
+9 -3
View File
@@ -18,22 +18,28 @@
<tr>
<th>Id</th>
<th>E-Mail</th>
<th>Vote status</th>
<th>Status</th>
</tr>
<tr th:each="voter : ${voters}">
<div th:if="${voter.candidatesubmit_status}">
<td class="submitted" th:text="${voter.id}"></td>
<td class="submitted" th:text="${voter.email}"></td>
<td class="submitted" th:text="Candidates submitted"></td>
</div>
<!-- If voter has voted -->
<div th:if="${voter.vote_status}">
<td class="voted" th:text="${voter.id}"></td>
<td class="voted" th:text="${voter.email}"></td>
<td class="voted" th:text="${voter.vote_status}"></td>
<td class="voted" th:text="Voted"></td>
</div>
<!-- ELSE -->
<div th:unless="${voter.vote_status}">
<td class="notVoted" th:text="${voter.id}"></td>
<td class="notVoted" th:text="${voter.email}"></td>
<td class="notVoted" th:text="${voter.vote_status}"></td>
<td class="notVoted" th:text="$Not voted"></td>
</tr>
</table>
</div>