-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Expand file tree
/
Copy pathfindOwners.html
More file actions
56 lines (54 loc) · 1.48 KB
/
findOwners.html
File metadata and controls
56 lines (54 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{fragments/layout :: layout (~{::body},'owners')}"
>
<body>
<h2 th:text="#{findOwners}"></h2>
<form
th:object="${owner}"
th:action="@{/owners/searchByLastName}"
method="get"
class="form-horizontal"
id="search-owner-form"
>
<div class="form-group">
<div class="control-group" id="lastNameGroup">
<label class="col-sm-2 control-label" th:text="#{lastName}"></label>
<div class="col-sm-10">
<input
class="form-control"
th:field="*{lastName}"
size="30"
maxlength="80"
/>
<span class="help-inline">
<div th:if="${#fields.hasAnyErrors()}">
<p th:each="err : ${#fields.allErrors()}" th:text="${err}"></p>
</div>
</span>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button
type="submit"
class="btn btn-primary"
th:text="#{findOwner}"
></button>
<a
class="btn btn-secondary"
th:href="@{/owners/showAll}"
th:text="#{showAllOwners}"
></a>
<a
class="btn btn-primary"
th:href="@{/owners/new}"
th:text="#{addOwner}"
></a>
</div>
</div>
</form>
</body>
</html>