.gitignore:
- added the /logs folder to the gitignore
VotingController.java:
- added log message logging false entry format
Candidate.java:
- return type changed from 'String' to 'Candidate'
wrongEmail.html:
- added html file to avoid error
voting.html:
- changed the way of output
23 lines
580 B
HTML
23 lines
580 B
HTML
<!DOCTYPE html>
|
|
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Title</title>
|
|
<link th:href="@{/styles/voting.css}" rel="stylesheet" />
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Wähle deine Kandidaten:</h1>
|
|
|
|
<div th:each="candidate : ${candidates}" class="candidates">
|
|
<h2 th:text="${candidate.category.name}"></h2>
|
|
<ul>
|
|
<li th:text="${candidate.name}"></li>
|
|
<li th:text="${candidate.votes}"></li>
|
|
<li th:text="${candidate.category.id}"></li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |