source: src/main/resources/templates/editAppointment.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
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>Edit appointment</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 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
11
12</head>
13<body>
14<div th:replace="layout.html::header"></div>
15
16<div style="width: 50%; padding: 5%">
17 <form method="POST" th:action="@{'/appointment/{id}' (id = ${rezervacija.id})}" >
18 <div class="form-group">
19 <label class="form-label mt-4"for="id" >Appointment id:</label>
20 <input id="id" name="id" type="text"
21 th:value="${rezervacija.id}"
22 class="form-control" disabled>
23 </div>
24 <div class="form-group">
25 <label for="uslugiIds" class="form-label mt-4 col-sm-4">Select Service</label>
26 <select class="form-select selectMultiple input " name="uslugiIds" id="uslugiIds" multiple>
27 <option value="" disabled>All</option>
28 <option th:each="usluga :${uslugi}" th:value="${usluga.getId()}"
29 th:text="${usluga.getDejnost()}"
30 th:selected="${rezerviraniUslugi.contains(usluga)}"
31 >[usluga.dejnost]
32 </option>
33 </select>
34 </div>
35 <div class="form-group">
36 <label for="terminId" class="form-label mt-4">Select Time</label>
37 <select class="form-select" id="terminId" name="terminId">
38 <option th:value="${rezervacija.getTermini().getId()}"
39 th:text="${rezervacija.getTermini().format()}"
40 th:selected="true"
41 ></option>
42 <option disabled>Other free dates</option>
43
44 <option th:each="termin :${nerezTerm}"
45 th:value="${termin.getId()}"
46 th:text="${termin.format()}">[termin.pocetok] </option>
47
48 </select>
49
50 </div>
51 <div class="form-group" >
52 <label class="form-label mt-4" for="klientId" >Klient id:</label>
53 <input id="klientId" name="klientId"
54 type="text"
55 th:value="${session.user.getKlienti()?.getId()}"
56 class="form-control" readonly>
57
58 </div>
59
60
61 <div class="form-group">
62 <label for="nacinPlakjanje" class="form-label mt-4">Payment method</label>
63 <select class="form-select" id="nacinPlakjanje">
64 <option> In the salon</option>
65 <option> Credit card</option>
66 </select>
67 <div></div>
68 <br>
69 <br>
70 <hr>
71 <button type="submit" class="btn btn-primary">Submit</button>
72 <a id="back" href="/appointment" type="button" class="btn btn-link">Back to list of appointments</a>
73 </div>
74 </form>
75</div>
76
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.