1 | <!DOCTYPE html>
|
---|
2 | <html lang="en" xmlns:width="http://www.w3.org/1999/xhtml">
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8">
|
---|
5 | <title>Rate Service with 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 | </head>
|
---|
11 | <body>
|
---|
12 | <div th:replace="layout.html :: header"></div>
|
---|
13 |
|
---|
14 | <form method="POST" th:action="@{'/appointment/{id}/rate' (id = ${rez.id})}">
|
---|
15 | <fieldset>
|
---|
16 | <div class="container" width:50%>
|
---|
17 | <br>
|
---|
18 | <br>
|
---|
19 | <h3>Rate service</h3>
|
---|
20 | <div class="form-group">
|
---|
21 | <label class="form-label mt-4"for="id" >Appointment id:</label>
|
---|
22 | <input id="id" name="id" type="text"
|
---|
23 | th:value="${rez.id}"
|
---|
24 | class="form-control" disabled>
|
---|
25 | </div>
|
---|
26 | <div class="form-group">
|
---|
27 | <label for="uslugiIds" class="form-label mt-4 col-sm-4">Services</label>
|
---|
28 | <select class="form-select selectMultiple input" id="uslugiIds" name="uslugiIds" multiple>
|
---|
29 | <option th:each="usluga :${uslugi}" th:value="${usluga.getId()}"
|
---|
30 | th:text="${usluga.getDejnost()}"
|
---|
31 | th:selected="${rezUslugi.contains(usluga)}">[usluga.dejnost] </option>
|
---|
32 | </select>
|
---|
33 |
|
---|
34 |
|
---|
35 | </div>
|
---|
36 | <div class="form-group">
|
---|
37 | <label class="form-label mt-4" for="vrednost" >Vrednost:</label>
|
---|
38 | <input id="vrednost" name="vrednost" type="number" min="1" max="5"
|
---|
39 | class="form-control" required>
|
---|
40 | </div>
|
---|
41 |
|
---|
42 | <div class="form-group">
|
---|
43 | <label class="form-label mt-4"for="komentar" >Komentar:</label>
|
---|
44 | <input id="komentar" name="komentar"
|
---|
45 | type="text"
|
---|
46 | class="form-control">
|
---|
47 | </div>
|
---|
48 |
|
---|
49 | <div class="form-group">
|
---|
50 | <label class="form-label mt-4"for="klienti" >Klient id:</label>
|
---|
51 | <input id="klienti" name="klienti"
|
---|
52 | type="text"
|
---|
53 | th:value="${session.user.getKlienti().getId()}"
|
---|
54 | class="form-control" readonly>
|
---|
55 |
|
---|
56 |
|
---|
57 | </div>
|
---|
58 | <br>
|
---|
59 | <div><button type="submit" class="btn btn-primary">Submit</button></div>
|
---|
60 | <a id="back" href="/appointment" type="button" class="btn btn-link">Back to appointments</a>
|
---|
61 | </div>
|
---|
62 | </div>
|
---|
63 | </fieldset>
|
---|
64 | </form>
|
---|
65 | <div th:replace="layout.html :: footer"></div>
|
---|
66 | </body>
|
---|
67 | </html> |
---|