From d92a4218dd6678261f17b4b8a3ab0838d6241ea1 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Thu, 15 Feb 2018 17:44:48 +0100 Subject: [PATCH] Add placeholder YYYY-MM-DD for date input field Closes gh-303 --- src/main/resources/templates/fragments/inputField.html | 10 +++++++--- .../templates/owners/createOrUpdateOwnerForm.html | 10 +++++----- .../templates/pets/createOrUpdatePetForm.html | 4 ++-- .../templates/pets/createOrUpdateVisitForm.html | 4 ++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main/resources/templates/fragments/inputField.html b/src/main/resources/templates/fragments/inputField.html index 7cef1ee9e..c3373bea0 100644 --- a/src/main/resources/templates/fragments/inputField.html +++ b/src/main/resources/templates/fragments/inputField.html @@ -1,14 +1,18 @@
- +
- +
+ + +
diff --git a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html b/src/main/resources/templates/owners/createOrUpdateOwnerForm.html index a34a39c7f..ca22d9de1 100644 --- a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html +++ b/src/main/resources/templates/owners/createOrUpdateOwnerForm.html @@ -7,15 +7,15 @@
+ th:replace="~{fragments/inputField :: input ('First Name', 'firstName', 'text')}" /> + th:replace="~{fragments/inputField :: input ('Last Name', 'lastName', 'text')}" /> + th:replace="~{fragments/inputField :: input ('Address', 'address', 'text')}" /> + th:replace="~{fragments/inputField :: input ('City', 'city', 'text')}" /> + th:replace="~{fragments/inputField :: input ('Telephone', 'telephone', 'text')}" />
diff --git a/src/main/resources/templates/pets/createOrUpdatePetForm.html b/src/main/resources/templates/pets/createOrUpdatePetForm.html index e4726e155..a0c182aa5 100644 --- a/src/main/resources/templates/pets/createOrUpdatePetForm.html +++ b/src/main/resources/templates/pets/createOrUpdatePetForm.html @@ -17,9 +17,9 @@
+ th:replace="~{fragments/inputField :: input ('Name', 'name', 'text')}" /> + th:replace="~{fragments/inputField :: input ('Birth Date', 'birthDate', 'date')}" />
diff --git a/src/main/resources/templates/pets/createOrUpdateVisitForm.html b/src/main/resources/templates/pets/createOrUpdateVisitForm.html index 26a71378f..4401d36ce 100644 --- a/src/main/resources/templates/pets/createOrUpdateVisitForm.html +++ b/src/main/resources/templates/pets/createOrUpdateVisitForm.html @@ -31,9 +31,9 @@
+ th:replace="~{fragments/inputField :: input ('Date', 'date', 'date')}" /> + th:replace="~{fragments/inputField :: input ('Description', 'description', 'text')}" />