source: target/classes/templates/parties.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.8 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 <div class="container my-3">
9 <form th:object="${party}" action="/admin/parties" 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="*{name}" class="form-control" id="name" aria-describedby="emailHelp">
14 </div>
15 <div class="row d-flex flex-row mb-3">
16 <label class="form-label">Адреса</label>
17 <div class="col col-md-6">
18 <label class="form-label">Улица</label>
19 <input list="streets" class="form-select" id="street" th:value="*{address?.street}" name="street">
20 <datalist id="streets">
21 <option th:each="street : ${streets}" th:value="${street}"></option>
22 </datalist>
23 </div>
24 <div class="col col-md-2">
25 <label class="form-label">Број</label>
26 <input type="number" min="1" class="form-control" id="houseNumber"
27 th:value="*{address?.houseNumber}" name="houseNumber">
28 </div>
29 <div class="col col-md-2">
30 <label class="form-label">Влез</label>
31 <input type="text" min="1" class="form-control" id="entranceNumber"
32 th:value="*{address?.entranceNumber}" name="entranceNumber">
33 </div>
34 <div class="col col-md-2">
35 <label class="form-label">Стан</label>
36 <input type="text" min="1" class="form-control" id="apartmentNumber"
37 th:value="*{address?.apartmentNumber}" name="apartmentNumber">
38 </div>
39 </div>
40 <div class="mb-3">
41 <label class="form-label">Општина</label>
42 <select class="form-control" id="municipality" th:value="*{address?.municipality}" name="municipality">
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<!-- <div class="container my-3">-->
51<!-- <form th:object="${party}" action="/admin/citizens" method="post">-->
52<!-- <input type="hidden" th:field="*{id}">-->
53<!-- </form>-->
54<!-- </div>-->
55
56 <div class="container-fluid">
57 <table class="table table-striped table-hover">
58 <thead class="table-header">
59 <tr>
60 <th>#</th>
61 <th>Име</th>
62 <th>Улица</th>
63 <th>Број</th>
64 <th>Влез</th>
65 <th>Стан</th>
66 <th>Општина</th>
67 </tr>
68 </thead>
69 <tbody>
70 <tr th:onclick="|window.location.href='/admin/parties/${party.id}/edit';|" th:each="party, iter : ${parties}">
71 <td th:text="${iter.count}"></td>
72 <td th:text="${party.name}"></td>
73 <td th:text="${party?.address?.street}"></td>
74 <td th:text="${party?.address?.houseNumber}"></td>
75 <td th:text="${party?.address?.entranceNumber}"></td>
76 <td th:text="${party?.address?.apartmentNumber}"></td>
77 <td th:text="${party?.address?.municipality?.name}"></td>
78 </tr>
79 </tbody>
80 </table>
81 </div>
82
83</div>
Note: See TracBrowser for help on using the repository browser.