Removed the dashboard because of the existence of phpmyadmin

This commit is contained in:
2020-12-12 00:02:58 +01:00
parent 5cb73a5a1a
commit 0cffad8ed0
5 changed files with 0 additions and 118 deletions
@@ -1,68 +0,0 @@
<!DOCTYPE html>
<html lang="de" xmlns:th="https://www.thymeleaf.org/">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link th:href="@{/styles/dashboard.css}" rel="stylesheet" />
</head>
<body>
<ul>
<li>
<h1>Wähler Liste</h1>
<div class="voterTable">
<table class="tableVoters" border="5">
<tr>
<th>Id</th>
<th>E-Mail</th>
</tr>
<tr th:each="voter : ${voters}">
<!-- 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>
</div>
<!-- ELSE -->
<div th:unless="${voter.vote_status}">
<div th:if="${voter.candidatesubmit_status}">
<td class="submitted" th:text="${voter.id}"></td>
<td class="submitted" th:text="${voter.email}"></td>
</div>
<div th:unless="${voter.candidatesubmit_status}">
<td class="notVoted" th:text="${voter.id}"></td>
<td class="notVoted" th:text="${voter.email}"></td>
</div>
</div>
</tr>
</table>
</div>
</li>
<li>
<h1>Kandidaten Liste</h1>
<div th:each="category : ${categories}" th:id="${category.id}">
<h2 th:text="${category.name}"></h2>
<table class="tableCandidates" border="5">
<tr>
<th>Id</th>
<th>Name</th>
<th>Votes</th>
</tr>
<tr th:each="candidate: ${category.candidateList}" th:id="${category.id} + '_' + ${candidate.id}">
<td th:text="${candidate.id}"></td>
<td th:text="${candidate.name}"></td>
<td th:text="${candidate.votes}"></td>
</tr>
</table>
</div>
</li>
</ul>
</body>
</html>
-7
View File
@@ -35,13 +35,6 @@
<button type="submit" id="signup_button">Abstimmen</button>
</form>
</div>
<div class="adminLogin">
<form action="#" th:action="@{/dashboard}" method="post">
<input class="password_input" id="password_input" type="password" placeholder="••••••" name="password" required autofocus />
<p></p>
<button type="submit" id="login_button">Login</button>
</form>
</div>
</body>
</html>