[ac151d1] | 1 | <!--Addition of PollingStation-->
|
---|
| 2 |
|
---|
| 3 | <nav class="navbar bg-secondary bg-gradient container-fluid px-0">
|
---|
| 4 | <div class="container-fluid">
|
---|
| 5 | <span class="navbar-brand mb-0 h1">Податоци за избирачко место</span>
|
---|
| 6 | </div>
|
---|
| 7 | </nav>
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | <div class="container-fluid">
|
---|
| 11 | <div class="container">
|
---|
| 12 | <h2>Додај гласачко место</h2>
|
---|
| 13 | <form method="POST" th:object="${pollingStation}" action="/admin/stations">
|
---|
| 14 | <div class="row d-flex flex-row mb-3">
|
---|
| 15 | <div>
|
---|
| 16 | <input type="hidden" th:value="${pollingStation?.id}">
|
---|
| 17 | </div>
|
---|
| 18 | <div class="col">
|
---|
| 19 | <label class="form-label">Име на гласачкото место</label>
|
---|
| 20 | <input type="text" class="form-control" id="pollingStation"
|
---|
| 21 | th:field="*{name}" name="name">
|
---|
| 22 | </div>
|
---|
| 23 | <label class="form-label">Адреса</label>
|
---|
| 24 | <div class="row mb-3">
|
---|
| 25 | <div class="col col-md-6">
|
---|
| 26 | <label class="form-label">Улица</label>
|
---|
| 27 | <input list="streets" class="form-select" id="street" th:value="*{address?.street}" name="street">
|
---|
| 28 | <datalist id="streets">
|
---|
| 29 | <option th:each="street : ${streets}" th:value="${street}"></option>
|
---|
| 30 | </datalist>
|
---|
| 31 | </div>
|
---|
| 32 | <div class="col col-md-2">
|
---|
| 33 | <label class="form-label">Број</label>
|
---|
| 34 | <input type="number" min="1" class="form-control" id="houseNumber"
|
---|
| 35 | th:value="${pollingStation?.address?.houseNumber}" name="houseNumber">
|
---|
| 36 | </div>
|
---|
| 37 | <div class="col col-md-2">
|
---|
| 38 | <label class="form-label">Влез</label>
|
---|
| 39 | <input type="text" min="1" class="form-control" id="entranceNumber"
|
---|
| 40 | th:value="${pollingStation?.address?.entranceNumber}" name="entranceNumber">
|
---|
| 41 | </div>
|
---|
| 42 | <div class="col col-md-2">
|
---|
| 43 | <label class="form-label">Стан</label>
|
---|
| 44 | <input type="text" min="1" class="form-control" id="apartmentNumber"
|
---|
| 45 | th:value="${pollingStation?.address?.apartmentNumber}" name="apartmentNumber">
|
---|
| 46 | </div>
|
---|
| 47 | </div>
|
---|
| 48 | <div class="col">
|
---|
| 49 | <label class="form-label">Избoона единици</label>
|
---|
| 50 | <select class="form-select" id="electoralUnit" th:field="*{electoralUnit}" name="electoralUnit">
|
---|
| 51 | <option th:each="unit : ${electoralUnits}" th:text="${unit?.name}"
|
---|
| 52 | th:value="${unit?.id}"></option>
|
---|
| 53 | </select>
|
---|
| 54 | </div>
|
---|
| 55 | </div>
|
---|
| 56 | <div class="mb-3">
|
---|
| 57 | <label class="form-label">Општина</label>
|
---|
| 58 | <select class="form-select" id="municipality" th:value="*{address?.municipality}" name="municipality">
|
---|
| 59 | <option th:each="municipality : ${municipalities}" th:value="${municipality.id}"
|
---|
| 60 | th:text="${municipality.name}"></option>
|
---|
| 61 | </select>
|
---|
| 62 | </div>
|
---|
| 63 | <button type="submit" class="btn btn-primary">Запиши</button>
|
---|
| 64 | </form>
|
---|
| 65 | </div>
|
---|
| 66 |
|
---|
| 67 | <div class="container-fluid">
|
---|
| 68 | <table class="table table-striped table-hover">
|
---|
| 69 | <thead class="table-header">
|
---|
| 70 | <tr>
|
---|
| 71 | <th>#</th>
|
---|
| 72 | <th>Име</th>
|
---|
| 73 | <th>Улица</th>
|
---|
| 74 | <th>Број</th>
|
---|
| 75 | <th>Влез</th>
|
---|
| 76 | <th>Стан</th>
|
---|
| 77 | <th>Општина</th>
|
---|
| 78 | <th>Изборни единици</th>
|
---|
| 79 | </tr>
|
---|
| 80 | </thead>
|
---|
| 81 | <tr th:each="station, iter : ${stations}"
|
---|
| 82 | th:onclick="|window.location.href='/admin/stations/${station.id}/edit';|">
|
---|
| 83 | <td th:text="${iter.count}"></td>
|
---|
| 84 | <td th:text="${station.name}"></td>
|
---|
| 85 | <td th:text="${station?.address?.street}"></td>
|
---|
| 86 | <td th:text="${station?.address?.houseNumber}"></td>
|
---|
| 87 | <td th:text="${station?.address?.entranceNumber}"></td>
|
---|
| 88 | <td th:text="${station?.address?.apartmentNumber}"></td>
|
---|
| 89 | <td th:text="${station?.address?.municipality?.name}"></td>
|
---|
| 90 | <td th:text="${station?.electoralUnit?.name}"></td>
|
---|
| 91 | </tr>
|
---|
| 92 | </table>
|
---|
| 93 | </div>
|
---|
| 94 | </div> |
---|