source: src/main/resources/templates/services_form.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: 2.5 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmlns:width="http://www.w3.org/1999/xhtml">
3<head>
4 <meta charset="UTF-8">
5 <title>Edit 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/{id}' (id = ${usluga?.id})}">
15 <fieldset>
16 <div class="container" width:50%>
17 <br>
18 <br>
19 <h3>Edit service</h3>
20
21 <div class="form-group">
22 <label class="form-label mt-4"for="id" >Usluga id:</label>
23 <input id="id" name="id" type="text"
24 th:value="${usluga?.id}"
25 class="form-control" disabled>
26 </div>
27
28 <div class="form-group">
29 <label class="form-label mt-4"for="dejnost" >Dejnost:</label>
30 <input id="dejnost" name="dejnost"
31 type="text"
32 th:value="${usluga?.dejnost}"
33 class="form-control" required>
34 </div>
35 <div class="form-group">
36 <label class="form-label mt-4"for="dejnost" >Cena:</label>
37 <input id="cena" name="cena"
38 th:value="${usluga?.cena}"
39 type="text" class="form-control" required>
40 </div>
41 <div class="form-group">
42 <label for="vraboteniId" class="form-label mt-4">Vraboteni:</label><br/>
43
44 <select class="form-select selectMultiple input" id="vraboteniId" name="vraboteniId" multiple>
45
46
47 <option th:each="vraboten: ${vraboteni}"
48 th:value="${vraboten?.getId()}"
49 th:selected="${vrabUsluga?.contains(vraboten)}"
50 th:text="${vraboten.getFirstName()}"> [vraboten.name]
51 </option>
52
53
54
55
56 </select>
57 </div>
58 <br>
59 <div><button type="submit" class="btn btn-primary">Submit</button></div>
60 <a id="back" href="/services" type="button" class="btn btn-link">Back to services</a>
61 </div>
62 </div>
63 </fieldset>
64</form>
65<div th:replace="layout.html :: footer"></div>
66</body>
67</html>
Note: See TracBrowser for help on using the repository browser.