source: target/classes/templates/objection.html@ ac151d1

main
Last change on this file since ac151d1 was ac151d1, checked in by David <darsov2@…>, 11 days ago

initial

  • Property mode set to 100644
File size: 3.3 KB
Line 
1<nav class="navbar bg-secondary bg-gradient container-fluid px-0">
2 <div class="container-fluid">
3 <span class="navbar-brand mb-0 h1">Податоци за приговорите</span>
4 </div>
5</nav>
6
7<div class="container-fluid">
8
9 <div class="container">
10 <form th:object="${objection}" action="/admin/objections" method="post">
11 <input type="hidden" th:field="*{id}">
12 <div class="mb-3">
13 <label for="realizations" class="form-label">Реализација на избори</label>
14 <select class="form-select" id="realizations" name="realization">
15 <option th:each="realization: ${realizations}" th:field="*{electionRealization}"
16 th:value="${realization.id}" th:text="${realization.name}"></option>
17 </select>
18 </div>
19 <div class="mb-3">
20 <label class="form-label">Избирачко место</label>
21 <input list="polling-stations" class="form-select" id="pollingStation" th:value="*{pollingStation}"
22 name="pollingStation">
23 <datalist id="polling-stations">
24 <option th:each="pollingStation : ${pollingStations}" th:value="${pollingStation.id}"></option>
25 </datalist>
26 </div>
27 <div class="mb-3">
28 <label for="description" class="form-label">Опис на приговорот</label>
29 <textarea class="form-control" id="description" name="description" rows="10"></textarea>
30 </div>
31 <button type="submit" class="btn btn-primary">Запиши</button>
32 </form>
33 </div>
34
35 <div class="container">
36 <table class="table table-striped table-hover">
37 <thead class="table-header">
38 <tr>
39 <th>#</th>
40 <th>Подносител</th>
41 <th>Датум</th>
42 <th>Избирачко место</th>
43 <th>Опис</th>
44 <th>Статус</th>
45 <th>Акција</th>
46 </tr>
47 </thead>
48 <tbody>
49 <tr th:each="objection, iter : ${objections}">
50 <td th:text="${iter.count}"></td>
51 <td></td>
52 <td></td>
53 <td th:text="${objection.pollingStation.id}"></td>
54 <td th:text="${objection.description}"></td>
55 <td>
56 <span th:if="${objection.status == 1}" th:text="'Неодредено'"></span>
57 <span th:if="${objection.status == 2}" th:text="'Прифатено'"></span>
58 <span th:if="${objection.status == 3}" th:text="'Одбиено'"></span>
59 </td>
60 <td th:if="${objection.status == 1}">
61 <a type="button" class="btn btn-success" th:href="'/admin/objections/' + ${objection.id} + '/accept'">Accept</a>
62 <a type="button" class="btn btn-danger" th:href="'/admin/objections/' + ${objection.id} + '/reject'" >Reject</a>
63 </td>
64 <td th:if="${objection.status != 1}"></td>
65 </tr>
66 </tbody>
67 </table>
68 </div>
69
70</div>
71
72<!--th:onclick="|window.location.href='/admin/address/${address.id}/edit';|"-->
Note: See TracBrowser for help on using the repository browser.