[ac151d1] | 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 | <form th:object="${candidacy}" action="/admin/participations" method="post">
|
---|
| 10 | <input type="hidden" th:field="*{id}">
|
---|
| 11 | <div class="mb-3">
|
---|
| 12 | <label for="name" class="form-label">Име</label>
|
---|
| 13 | <input type="text" th:field="*{description}" class="form-control" id="name" aria-describedby="emailHelp">
|
---|
| 14 | </div>
|
---|
| 15 | <div class="mb-3">
|
---|
| 16 | <label class="form-label">Кандидат</label>
|
---|
| 17 | <select class="form-control" id="candidate" th:field="*{candidate}" name="candidate">
|
---|
| 18 | <option value=""></option>
|
---|
| 19 | <option th:each="candidate : ${candidates}" th:value="${candidate.id}"
|
---|
| 20 | th:text="|${candidate.name} ${candidate.surname}|"></option>
|
---|
| 21 | </select>
|
---|
| 22 | </div>
|
---|
| 23 | <div class="mb-3">
|
---|
| 24 | <label class="form-label">Партија</label>
|
---|
| 25 | <select class="form-control" id="party" th:field="*{party}">
|
---|
| 26 | <option value=""></option>
|
---|
| 27 | <option th:each="party : ${parties}" th:value="${party.id}"
|
---|
| 28 | th:text="${party.name}"></option>
|
---|
| 29 | </select>
|
---|
| 30 | </div>
|
---|
| 31 | <div class="mb-3">
|
---|
| 32 | <label class="form-label">Реализација на избори</label>
|
---|
| 33 | <select class="form-control" id="eletionsRealizations" th:field="*{candidatesElectionRealization}">
|
---|
| 34 | <option value=""></option>
|
---|
| 35 | <option th:each="realization : ${electionsRealizations}" th:value="${realization.id}"
|
---|
| 36 | th:text="${realization.name}"></option>
|
---|
| 37 | </select>
|
---|
| 38 | </div>
|
---|
| 39 | <div class="mb-3">
|
---|
| 40 | <label class="form-label">Општина</label>
|
---|
| 41 | <select class="form-control" id="municipality" th:field="*{municipality}" >
|
---|
| 42 | <option value="null">Цела држава</option>
|
---|
| 43 | <option th:each="municipality : ${municipalities}" th:value="${municipality.id}"
|
---|
| 44 | th:text="${municipality.name}"></option>
|
---|
| 45 | </select>
|
---|
| 46 | </div>
|
---|
| 47 | <button type="submit" class="btn btn-primary">Запиши</button>
|
---|
| 48 | </form>
|
---|
| 49 | </div>
|
---|
| 50 |
|
---|
| 51 | <div class="container-fluid">
|
---|
| 52 | <table class="table table-striped table-hover">
|
---|
| 53 | <thead class="table-header">
|
---|
| 54 | <tr>
|
---|
| 55 | <th>#</th>
|
---|
| 56 | <th>Име</th>
|
---|
| 57 | <th>Презиме</th>
|
---|
| 58 | <th>Опис</th>
|
---|
| 59 | <th>Партија</th>
|
---|
| 60 | <th>Реализација на избори</th>
|
---|
| 61 | <th>Општина</th>
|
---|
| 62 | </tr>
|
---|
| 63 | </thead>
|
---|
| 64 | <tbody>
|
---|
| 65 | <tr th:onclick="|window.location.href='/admin/participations/${candidacy.id}/edit';|"
|
---|
| 66 | th:each="candidacy, iter : ${candidacies}">
|
---|
| 67 | <td th:text="${iter.count}"></td>
|
---|
| 68 | <td th:text="${candidacy.candidate.name}"></td>
|
---|
| 69 | <td th:text="${candidacy.candidate.surname}"></td>
|
---|
| 70 | <td th:text="${candidacy.description}"></td>
|
---|
| 71 | <td th:text="${candidacy.party.name}"></td>
|
---|
| 72 | <td th:text="${candidacy.candidatesElectionRealization.name}"></td>
|
---|
| 73 | <td th:text="${candidacy?.municipality?.name}"></td>
|
---|
| 74 | </tr>
|
---|
| 75 | </tbody>
|
---|
| 76 | </table>
|
---|
| 77 | </div>
|
---|
| 78 |
|
---|
| 79 | </div>
|
---|