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 | <div class="container my-3">
|
---|
9 |
|
---|
10 | <form th:object="${citizen}" action="/admin/citizens" method="post">
|
---|
11 | <input type="hidden" th:field="*{id}">
|
---|
12 | <div class="mb-3">
|
---|
13 | <label for="name" class="form-label">Име</label>
|
---|
14 | <input type="text" th:field="*{name}" class="form-control" id="name" aria-describedby="emailHelp">
|
---|
15 | </div>
|
---|
16 | <div class="mb-3">
|
---|
17 | <label for="surname" class="form-label">Презиме</label>
|
---|
18 | <input type="text" th:field="*{surname}" class="form-control" id="surname" aria-describedby="emailHelp">
|
---|
19 | </div>
|
---|
20 | <div class="mb-3">
|
---|
21 | <label for="dateOfBirth" class="form-label">Датум на раѓање</label>
|
---|
22 | <input type="date" th:field="*{dateOfBirth}" class="form-control" id="dateOfBirth"
|
---|
23 | aria-describedby="emailHelp">
|
---|
24 | </div>
|
---|
25 | <div class="mb-3">
|
---|
26 | <label for="idNum" class="form-label">ЕМБГ</label>
|
---|
27 | <input type="text" th:field="*{idNum}" class="form-control" id="idNum" aria-describedby="emailHelp">
|
---|
28 | </div>
|
---|
29 | <div class="row d-flex flex-row mb-3">
|
---|
30 | <label class="form-label">Адреса</label>
|
---|
31 | <div class="col col-md-6">
|
---|
32 | <label class="form-label">Улица</label>
|
---|
33 | <input list="streets" class="form-select" id="street" th:value="*{address?.street}" name="street">
|
---|
34 | <datalist id="streets">
|
---|
35 | <option th:each="street : ${streets}" th:value="${street}"></option>
|
---|
36 | </datalist>
|
---|
37 | </div>
|
---|
38 | <div class="col col-md-2">
|
---|
39 | <label class="form-label">Број</label>
|
---|
40 | <input type="number" min="1" class="form-control" id="houseNumber"
|
---|
41 | th:value="*{address?.houseNumber}" name="houseNumber">
|
---|
42 | </div>
|
---|
43 | <div class="col col-md-2">
|
---|
44 | <label class="form-label">Влез</label>
|
---|
45 | <input type="text" min="1" class="form-control" id="entranceNumber"
|
---|
46 | th:value="*{address?.entranceNumber}" name="entranceNumber">
|
---|
47 | </div>
|
---|
48 | <div class="col col-md-2">
|
---|
49 | <label class="form-label">Стан</label>
|
---|
50 | <input type="text" min="1" class="form-control" id="apartmentNumber"
|
---|
51 | th:value="*{address?.apartmentNumber}" name="apartmentNumber">
|
---|
52 | </div>
|
---|
53 | </div>
|
---|
54 | <div class="mb-3">
|
---|
55 | <label class="form-label">Општина</label>
|
---|
56 | <select class="form-control" id="municipality" th:value="*{address?.municipality}" name="municipality">
|
---|
57 | <option th:each="municipality : ${municipalities}" th:value="${municipality.id}"
|
---|
58 | th:text="${municipality.name}"></option>
|
---|
59 | </select>
|
---|
60 | </div>
|
---|
61 | <button type="submit" class="btn btn-primary">Запиши</button>
|
---|
62 | </form>
|
---|
63 | </div>
|
---|
64 | <div class="container my-3">
|
---|
65 | <form th:object="${citizen}" action="/admin/citizens" method="post">
|
---|
66 | <input type="hidden" th:field="*{id}">
|
---|
67 | </form>
|
---|
68 | </div>
|
---|
69 |
|
---|
70 | <div class="container-fluid">
|
---|
71 | <table class="table table-striped table-hover">
|
---|
72 | <thead class="table-header">
|
---|
73 | <tr>
|
---|
74 | <th>#</th>
|
---|
75 | <th>Име</th>
|
---|
76 | <th>Презиме</th>
|
---|
77 | <th>Датум на раѓање</th>
|
---|
78 | <th>ЕМБГ</th>
|
---|
79 | <th>Улица</th>
|
---|
80 | <th>Број</th>
|
---|
81 | <th>Влез</th>
|
---|
82 | <th>Стан</th>
|
---|
83 | <th>Општина</th>
|
---|
84 | <th>Број на лична карта</th>
|
---|
85 | <th>Важи од</th>
|
---|
86 | <th>Важи до</th>
|
---|
87 | <th>Акции</th>
|
---|
88 | </tr>
|
---|
89 | </thead>
|
---|
90 | <tbody>
|
---|
91 | <tr class="citizen-row"
|
---|
92 | th:each="citizen, iter : ${citizens}"
|
---|
93 | th:class="${citizen.type().equals('candidate') ? 'table-danger' : citizen.type().equals('committee') ? 'table-info' : ''}">
|
---|
94 | <td th:text="${iter.count}"></td>
|
---|
95 | <td th:text="${citizen.name}"></td>
|
---|
96 | <td th:text="${citizen.surname}"></td>
|
---|
97 | <td th:text="${citizen.dateOfBirth}"></td>
|
---|
98 | <td th:text="${citizen.idNum}"></td>
|
---|
99 | <td th:text="${citizen?.address?.street}"></td>
|
---|
100 | <td th:text="${citizen?.address?.houseNumber}"></td>
|
---|
101 | <td th:text="${citizen?.address?.entranceNumber}"></td>
|
---|
102 | <td th:text="${citizen?.address?.apartmentNumber}"></td>
|
---|
103 | <td th:text="${citizen?.address?.municipality?.name}"></td>
|
---|
104 | <td th:text="${citizen?.document?.documentNumber}"></td>
|
---|
105 | <td th:text="${citizen?.document?.issueDate}"></td>
|
---|
106 | <td th:text="${citizen?.document?.expiryDate}"></td>
|
---|
107 | <td>
|
---|
108 | <a th:href="${'/admin/voteCode/2/' + citizen.id}"
|
---|
109 | class="add-document-link btn btn-info">
|
---|
110 | Преземи код
|
---|
111 | </a><!-- hardcoded 2 -->
|
---|
112 | </td>
|
---|
113 | </tr>
|
---|
114 | </tbody>
|
---|
115 | </table>
|
---|
116 | </div>
|
---|
117 | </div> |
---|