source: src/main/resources/templates/free_termini.html@ 850b344

Last change on this file since 850b344 was 850b344, checked in by Tamara Simikj <tamara.simic12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[850b344]1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>TerminiList</title>
6 <link href="https://bootswatch.com/5/journal/bootstrap.css" rel="stylesheet">
7 <script src="https://bootswatch.com/_assets/css/custom.min.css"></script>
8 <script src="https://bootswatch.com/_vendor/prismjs/themes/prism-okaidia.css" ></script>
9 <script src="https://bootswatch.com/_vendor/font-awesome/css/font-awesome.min.css"></script>
10</head>
11<body>
12<div th:replace="layout.html :: header"></div>
13
14<div style="margin-top: 5%">
15 <div>
16 <div class="container mb-4">
17 <div class="row">
18 <div class="col-12" >
19 <h2 class="text-center">Free booking terms</h2>
20 <a th:href="@{/termini/add}" class="btn btn-primary">
21 Add new
22 </a>
23 <div class="table-responsive">
24 <table class="table table-striped">
25 <thead>
26 <tr>
27 <th>Termin id</th>
28 <th>Pocetok</th>
29 <th>Vremetraenje</th>
30 <th>Vraboten id</th>
31 <th>Vraboten ime</th>
32 </tr>
33 </thead>
34 <tbody>
35
36 <tr class="item" th:each="termin :${termini}" th:if="${nerezTerm.contains(termin)}">
37 <td th:text="${termin.id}">[termin.id]</td>
38 <td th:text="${termin.format()}" >[termin.pocetok]</td>
39 <td th:text="${termin.vremetraenje}">[termin.vremetraenje]</td>
40 <td th:text="${termin.vraboteni.getId()}" >[termin.vraboteni.getId()]</td>
41 <td th:text="${termin.vraboteni.getFirstName()}" >[termin.vraboteni.getFirstName()]</td>
42
43 <td>
44 <a th:href="@{'/termini/{id}/edit' (id = ${termin.id})}" class="btn btn-link">Edit</a>
45
46 <form method="POST" th:action="@{'/termini/{id}/delete' (id = ${termin.id})}">
47 <button type="submit" class="btn btn-primary">Delete</button>
48 </form>
49 </td>
50
51 </tr>
52 </tbody>
53 </table>
54 </div>
55 </div>
56 </div>
57 </div>
58 </div>
59 <div>
60 </div>
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.