source: src/main/resources/templates/termini_list.html

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

Initial commit

  • Property mode set to 100644
File size: 3.1 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 dates</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 <th>rezervacija id</th>
33 </tr>
34 </thead>
35 <tbody>
36
37 <tr class="item" th:each="termin :${termini}" >
38 <td th:text="${termin.id}">[termin.id]</td>
39 <td th:text="${termin.format()}" >[termin.pocetok]</td>
40 <td th:text="${termin.vremetraenje}">[termin.vremetraenje]</td>
41 <td th:text="${termin.vraboteni.getId()}" >[termin.vraboteni.getId()]</td>
42 <td th:text="${termin.vraboteni.getFirstName()}" >[termin.vraboteni.getFirstName()]</td>
43
44 <td >
45 <th:block th:each="rez :${rezervacii}" th:if="${termin.getRezervacijas().contains(rez)}">
46 <p th:text="${rez.getId()} !=null ? ${rez.getId()} : 'not reserved'">[termin.rezervacijas]
47 </p>
48
49 </th:block>
50 </td>
51 <td>
52 <a th:href="@{'/termini/{id}/edit' (id = ${termin.id})}" class="btn btn-link">Edit</a>
53
54 <form method="POST" th:action="@{'/termini/{id}/delete' (id = ${termin.id})}">
55 <button type="submit" class="btn btn-primary">Delete</button>
56 </form>
57 </td>
58
59 </tr>
60 </tbody>
61 </table>
62 </div>
63 </div>
64 </div>
65 </div>
66 </div>
67 <div>
68 </div>
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.