spring-petclinic/src/main/resources/templates/owners/createOrUpdateOwnerForm.html
anizmo 0c88f916db
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Adding strings for all other languages
- Added WebConfiguration class to change language using url param
- Added text from messages to html files wherever required
- Added String to all other languages

Closes #1854

Signed-off-by: anizmo <potdar.anuj@gmail.com>
2025-04-22 09:35:23 +01:00

30 lines
1.1 KiB
HTML

<html xmlns:th="https://www.thymeleaf.org"
th:replace="~{fragments/layout :: layout (~{::body},'owners')}">
<body>
<h2 th:text="#{owner}">Owner</h2>
<form th:object="${owner}" class="form-horizontal" id="add-owner-form" method="post">
<div class="form-group has-feedback">
<input
th:replace="~{fragments/inputField :: input (#{firstName}, 'firstName', 'text')}" />
<input
th:replace="~{fragments/inputField :: input (#{lastName}, 'lastName', 'text')}" />
<input
th:replace="~{fragments/inputField :: input (#{address}, 'address', 'text')}" />
<input
th:replace="~{fragments/inputField :: input (#{city}, 'city', 'text')}" />
<input
th:replace="~{fragments/inputField :: input (#{telephone}, 'telephone', 'text')}" />
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button
th:with="text=${owner['new']} ? #{addOwner} : #{updateOwner}"
class="btn btn-primary" type="submit" th:text="${text}">Add
Owner</button>
</div>
</div>
</form>
</body>
</html>