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-fluid">
|
---|
9 | <table class="table table-striped table-hover">
|
---|
10 | <thead class="table-header">
|
---|
11 | <tr>
|
---|
12 | <th>#</th>
|
---|
13 | <th>Име</th>
|
---|
14 | <th>Презиме</th>
|
---|
15 | <th>Датум на раѓање</th>
|
---|
16 | <th>ЕМБГ</th>
|
---|
17 | <th>Улица</th>
|
---|
18 | <th>Број</th>
|
---|
19 | <th>Влез</th>
|
---|
20 | <th>Стан</th>
|
---|
21 | <th>Општина</th>
|
---|
22 | <th>Број на лична карта</th>
|
---|
23 | <th>Важи од</th>
|
---|
24 | <th>Важи до</th>
|
---|
25 | <th colspan="2">Акции</th>
|
---|
26 | </tr>
|
---|
27 | </thead>
|
---|
28 | <tbody>
|
---|
29 | <tr class="citizen-row" th:onclick="|window.location.href='/admin/citizens/${citizen.citizen.id}/edit';|"
|
---|
30 | th:each="citizen, iter : ${citizens}">
|
---|
31 | <td th:text="${iter.count}"></td>
|
---|
32 | <td th:text="${citizen?.citizen?.name}"></td>
|
---|
33 | <td th:text="${citizen?.citizen?.surname}"></td>
|
---|
34 | <td th:text="${citizen?.citizen?.dateOfBirth}"></td>
|
---|
35 | <td th:text="${citizen?.citizen?.idNum}"></td>
|
---|
36 | <td th:text="${citizen?.citizen?.address?.street}"></td>
|
---|
37 | <td th:text="${citizen?.citizen?.address?.houseNumber}"></td>
|
---|
38 | <td th:text="${citizen?.citizen?.address?.entranceNumber}"></td>
|
---|
39 | <td th:text="${citizen?.citizen?.address?.apartmentNumber}"></td>
|
---|
40 | <td th:text="${citizen?.citizen?.address?.municipality?.name}"></td>
|
---|
41 | <td th:text="${citizen?.citizen?.document?.documentNumber}"></td>
|
---|
42 | <td th:text="${citizen?.citizen?.document?.issueDate}"></td>
|
---|
43 | <td th:text="${citizen?.citizen?.document?.expiryDate}"></td>
|
---|
44 | <td>
|
---|
45 | <a th:if="${citizen?.timeVoted == null}" th:href="${'/admin/electionRealizationInterface/' + citizen.citizen.id}"
|
---|
46 | class="add-voted-link btn btn-info">
|
---|
47 | Гласај
|
---|
48 | </a>
|
---|
49 | <a th:if="${citizen?.timeVoted != null}" th:text="${citizen?.timeVoted}">
|
---|
50 |
|
---|
51 | </a>
|
---|
52 | </td>
|
---|
53 | </tr>
|
---|
54 | </tbody>
|
---|
55 | </table>
|
---|
56 | </div>
|
---|
57 |
|
---|
58 | </div>
|
---|
59 | <script>
|
---|
60 | $(document).ready(function () {
|
---|
61 | $('.add-document-link').on('click', function (e) {
|
---|
62 | e.stopPropagation();
|
---|
63 | var citizenId = $(this).data('citizen-id');
|
---|
64 | var documentNumber = $(this).data('document-number');
|
---|
65 | var validFrom = $(this).data('valid-from');
|
---|
66 | var validTo = $(this).data('valid-to');
|
---|
67 | var issuer = $(this).data('issuer');
|
---|
68 | var documentId = $(this).data('document-id');
|
---|
69 |
|
---|
70 | $('#citizenId').val(citizenId);
|
---|
71 | $('#documentNumber').val(documentNumber);
|
---|
72 | $('#validFrom').val(validFrom);
|
---|
73 | $('#validTo').val(validTo);
|
---|
74 | $('#issuer').val(issuer);
|
---|
75 | $('#documentId').val(documentId);
|
---|
76 | });
|
---|
77 | });
|
---|
78 | </script>
|
---|