source: src/main/resources/templates/appointmentsList.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: 3.6 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmlns:>
3<head>
4 <meta charset="UTF-8">
5 <title>AppointmentsList</title>
6
7 <link href="https://bootswatch.com/5/journal/bootstrap.css"
8 rel="stylesheet">
9 <script src="https://bootswatch.com/_assets/css/custom.min.css"></script>
10 <script src="https://bootswatch.com/_vendor/prismjs/themes/prism-okaidia.css"></script>
11 <script src="https://bootswatch.com/_vendor/font-awesome/css/font-awesome.min.css"></script>
12</head>
13<body>
14<div th:replace="layout.html::header"></div>
15<div style="margin-top: 5%">
16 <div>
17 <div class="container mb-4">
18 <div class="row">
19 <div class="col-12">
20 <a class="btn btn-primary" th:href="@{/services/rate}">
21 Rate Service
22 </a>
23 <div class="table-responsive">
24 <table class="table table-hover table-striped">
25 <thead>
26 <tr>
27 <th>Br.rez</th>
28 <th>Klient</th>
29 <th>Termin</th>
30 <th>Uplata</th>
31 <th>Usluga</th>
32 </tr>
33 </thead>
34 <tbody>
35
36 <tr class="item"
37 th:if="${session.user.getKlienti()}==null or ${session.user.getKlienti().getId()} ==${rez.klienti.getId()}"
38 th:each="rez :${rezervacii}">
39 <td th:text="${rez.id}">[rez.id]</td>
40 <td th:text="${rez.klienti.getIme()} + ' id:' +${rez.klienti.getId()} ">
41 [rez.klient.id]
42 </td>
43 <td th:text="${rez.termini.format()}">[rez.termini.pocetok]</td>
44 <td th:text="${rez.uplata}!=null ? ${rez.uplata.getId()} :'notPayed'">
45 [rez.uplata.getId()]
46 </td>
47
48 <td>
49 <th:block th:each="rezU : ${rezUslugi}" th:if="${rezU.brRez} == ${rez}">
50 <div class="item-rel" th:text="${rezU.usluga.getDejnost()}">
51 [usluga]
52 </div>
53 </th:block>
54 </td>
55
56
57 <th:block th:if="${session.user !=null}">
58 <td>
59
60 <form method="POST" th:action="@{'/appointment/{id}/delete' (id = ${rez.id})}">
61 <button class="btn btn-link" type="submit">Delete</button>
62 </form>
63
64 <a th:if="${session.user.getVraboteni() ==null}"
65 class="btn btn-link" th:href="@{'/appointment/{id}/edit' (id = ${rez.id})}">Edit</a>
66
67 <a th:if="${session.user.getVraboteni() ==null}"
68 class="btn btn-primary" th:href="@{'/appointment/{id}/rate' (id = ${rez.id})}">Rate</a>
69 </td>
70 </th:block>
71 </tr>
72
73 </tbody>
74 </table>
75 </div>
76 </div>
77 </div>
78 </div>
79 </div>
80</body>
81</html>
Note: See TracBrowser for help on using the repository browser.