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