source: src/main/resources/templates/elections.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: 1.3 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
8<div class="container-fluid">
9
10 <div class="container">
11 <form th:object="${election}" action="/admin/elections" method="post">
12 <input type="hidden" th:field="*{id}">
13 <div class="mb-3">
14 <label for="exampleInputEmail1" class="form-label">Име на избори</label>
15 <input type="text" th:field="*{name}" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
16 </div>
17 <button type="submit" class="btn btn-primary">Запиши</button>
18 </form>
19 </div>
20 <div class="container">
21 <table class="table table-striped table-hover">
22 <thead class="table-header">
23 <tr>
24 <th>#</th>
25 <th>Име</th>
26 </tr>
27 </thead>
28 <tbody>
29 <tr th:onclick="|window.location.href='/admin/elections/${election.id}/edit';|" th:each="election, iter : ${elections}">
30 <td th:text="${iter.count}"></td>
31 <td th:text="${election.name}"></td>
32 </tr>
33 </tbody>
34 </table>
35 </div>
36
37</div>
Note: See TracBrowser for help on using the repository browser.