[850b344] | 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</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="@{'/services/rate'}">
|
---|
| 15 | <fieldset>
|
---|
| 16 | <div class="container" width:50%>
|
---|
| 17 | <br>
|
---|
| 18 | <br>
|
---|
| 19 | <h3>Rate service</h3>
|
---|
| 20 | <div class="form-group">
|
---|
| 21 | <label for="selectUsluga" class="form-label mt-4 col-sm-4">Select Service</label>
|
---|
| 22 | <select class="form-select" id="selectUsluga" name="uslugi">
|
---|
| 23 | <option value="" disabled>All</option>
|
---|
| 24 | <option th:each="usluga :${uslugi}" th:value="${usluga.getId()}" th:text="${usluga.getDejnost()}">[usluga.dejnost] </option>
|
---|
| 25 | </select>
|
---|
| 26 | </div>
|
---|
| 27 | <div class="form-group">
|
---|
| 28 | <label class="form-label mt-4"for="vrednost" >Vrednost:</label>
|
---|
| 29 | <input id="vrednost" name="vrednost" type="number" min="1" max="5"
|
---|
| 30 | class="form-control" required>
|
---|
| 31 | </div>
|
---|
| 32 |
|
---|
| 33 | <div class="form-group">
|
---|
| 34 | <label class="form-label mt-4"for="komentar" >Komentar:</label>
|
---|
| 35 | <input id="komentar" name="komentar"
|
---|
| 36 | type="text"
|
---|
| 37 | class="form-control">
|
---|
| 38 | </div>
|
---|
| 39 |
|
---|
| 40 | <div class="form-group">
|
---|
| 41 | <label class="form-label mt-4"for="klienti" >Klient id:</label>
|
---|
| 42 | <input id="klienti" name="klienti"
|
---|
| 43 | type="text"
|
---|
| 44 | th:if="${session.user.getKlienti()}!=null"
|
---|
| 45 | th:value="${session.user.getKlienti().getId()}"
|
---|
| 46 | class="form-control" readonly>
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | </div>
|
---|
| 50 |
|
---|
| 51 | <br>
|
---|
| 52 | <div><button type="submit" class="btn btn-primary">Submit</button></div>
|
---|
| 53 | <a id="back" href="/services" type="button" class="btn btn-link">Back to services</a>
|
---|
| 54 | </div>
|
---|
| 55 | </div>
|
---|
| 56 | </fieldset>
|
---|
| 57 | </form>
|
---|
| 58 | <div th:replace="layout.html :: footer"></div>
|
---|
| 59 | </body>
|
---|
| 60 | </html> |
---|