From af8645561b77eb4e7bd49bae1335ffacdb8278cf Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Wed, 4 Jun 2025 21:46:07 +0200 Subject: [PATCH] Cleanup HTML files - Fixed broken paging and aligned vetList and OwnersList - Adding Doctype for consistency - Removed html5shim and respond for IE < 9 - Reformatting HTML Signed-off-by: Patrick Baumgartner --- src/main/resources/templates/error.html | 12 +- .../templates/fragments/inputField.html | 25 ++- .../resources/templates/fragments/layout.html | 19 +-- .../templates/fragments/selectField.html | 20 +-- .../owners/createOrUpdateOwnerForm.html | 29 ++-- .../templates/owners/findOwners.html | 16 +- .../templates/owners/ownerDetails.html | 158 +++++++++--------- .../templates/owners/ownersList.html | 79 +++++---- .../templates/pets/createOrUpdatePetForm.html | 21 +-- .../pets/createOrUpdateVisitForm.html | 20 +-- .../resources/templates/vets/vetList.html | 78 ++++----- src/main/resources/templates/welcome.html | 14 +- 12 files changed, 232 insertions(+), 259 deletions(-) diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html index 070e1c770..4d76d8d16 100644 --- a/src/main/resources/templates/error.html +++ b/src/main/resources/templates/error.html @@ -2,10 +2,10 @@ - - -

Something happened...

-

Exception message

- + + +

Something happened...

+

Exception message

+ - + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/inputField.html b/src/main/resources/templates/fragments/inputField.html index 68afbec7a..da1de4772 100644 --- a/src/main/resources/templates/fragments/inputField.html +++ b/src/main/resources/templates/fragments/inputField.html @@ -1,23 +1,21 @@ + + +
-
-
- - -
- +
+ + +
+ - + Error
@@ -25,4 +23,5 @@ - + + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/layout.html b/src/main/resources/templates/fragments/layout.html index 34e0a5496..7c5cd0d86 100644 --- a/src/main/resources/templates/fragments/layout.html +++ b/src/main/resources/templates/fragments/layout.html @@ -1,6 +1,6 @@ - - + + + @@ -8,16 +8,8 @@ - - PetClinic :: a Spring Framework demonstration - - - @@ -81,7 +73,8 @@
- +
@@ -92,4 +85,4 @@ - + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/selectField.html b/src/main/resources/templates/fragments/selectField.html index b90004ef8..d248864d7 100644 --- a/src/main/resources/templates/fragments/selectField.html +++ b/src/main/resources/templates/fragments/selectField.html @@ -1,24 +1,21 @@ + + +
-
- + - + Error
@@ -26,4 +23,5 @@ - + + \ No newline at end of file diff --git a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html b/src/main/resources/templates/owners/createOrUpdateOwnerForm.html index e9356f177..4cd6e115b 100644 --- a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html +++ b/src/main/resources/templates/owners/createOrUpdateOwnerForm.html @@ -1,30 +1,25 @@ - + + +

Owner

- - - - - + + + + +
- +
- + + \ No newline at end of file diff --git a/src/main/resources/templates/owners/findOwners.html b/src/main/resources/templates/owners/findOwners.html index 61536ae9b..703351c7d 100644 --- a/src/main/resources/templates/owners/findOwners.html +++ b/src/main/resources/templates/owners/findOwners.html @@ -1,21 +1,20 @@ - + + +

Find Owners

-
+
- +
-

Error

+

Error

@@ -32,4 +31,5 @@ - + + \ No newline at end of file diff --git a/src/main/resources/templates/owners/ownerDetails.html b/src/main/resources/templates/owners/ownerDetails.html index abdc7a3d8..cc175cd13 100644 --- a/src/main/resources/templates/owners/ownerDetails.html +++ b/src/main/resources/templates/owners/ownerDetails.html @@ -1,102 +1,96 @@ - + - - - -

Owner Information

+ -
- -
+

Owner Information

-
- -
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + +
Name
Address
City
Telephone
+ Edit + Owner + Add + New Pet - - - - - - - - - - - - - - - - - -
Name
Address
City
Telephone
- - Edit - Owner - Add - New Pet - -
-
-
-

Pets and Visits

- - - - - - - + - +
-
-
Name
-
-
Birth Date
-
-
Type
-
-
-
- - - - - - - - - - - +
+
+
+

Pets and Visits

+ +
Visit DateDescription
+ + + + - - -
+
+
Name
+
+
Birth Date
+
+
Type
+
+
+
+ + - - + + -
Edit PetAdd VisitVisit DateDescription
-
- + - + - + \ No newline at end of file diff --git a/src/main/resources/templates/owners/ownersList.html b/src/main/resources/templates/owners/ownersList.html index 45843f6a7..01223c1c5 100644 --- a/src/main/resources/templates/owners/ownersList.html +++ b/src/main/resources/templates/owners/ownersList.html @@ -4,59 +4,58 @@ -

Owners

+

Owners

- - - - - - - - - - - - - - - - -
NameAddressCityTelephonePets
- - - - -
-
- Pages: - [ - + + + + + + + + + + + + + + + + +
NameAddressCityTelephonePets
+ + + + +
+
+ Pages: + [ + [[${i}]] [[${i}]] - - - + + + - + + class="fa fa-step-backward"> - + + class="fa fa-step-forward"> - + - + class="fa fa-fast-forward"> + -
+
- + \ No newline at end of file diff --git a/src/main/resources/templates/pets/createOrUpdatePetForm.html b/src/main/resources/templates/pets/createOrUpdatePetForm.html index b1d300a6f..396963d41 100644 --- a/src/main/resources/templates/pets/createOrUpdatePetForm.html +++ b/src/main/resources/templates/pets/createOrUpdatePetForm.html @@ -1,5 +1,6 @@ - + + + @@ -16,22 +17,18 @@ - - - + + +
- +
- + \ No newline at end of file diff --git a/src/main/resources/templates/pets/createOrUpdateVisitForm.html b/src/main/resources/templates/pets/createOrUpdateVisitForm.html index 20e102fa6..93d394a73 100644 --- a/src/main/resources/templates/pets/createOrUpdateVisitForm.html +++ b/src/main/resources/templates/pets/createOrUpdateVisitForm.html @@ -1,5 +1,6 @@ - + + + @@ -20,20 +21,16 @@
- - + +
@@ -58,4 +55,5 @@ - + + \ No newline at end of file diff --git a/src/main/resources/templates/vets/vetList.html b/src/main/resources/templates/vets/vetList.html index 8d51c1e89..e40fd654e 100644 --- a/src/main/resources/templates/vets/vetList.html +++ b/src/main/resources/templates/vets/vetList.html @@ -1,57 +1,57 @@ - + -

Veterinarians

+

Veterinarians

- - - - - - - - - - - - - -
NameSpecialties
none
- -
- Pages: - [ - + + + + + + + + + + + + + +
NameSpecialties
+ none +
+
+ Pages: + [ + [[${i}]] [[${i}]] - - + + - + class="fa fa-fast-backward"> + - + - + class="fa fa-step-backward"> + - + - + class="fa fa-step-forward"> + - + - + class="fa fa-fast-forward"> + -
+
- + + \ No newline at end of file diff --git a/src/main/resources/templates/welcome.html b/src/main/resources/templates/welcome.html index 4fa1cd328..eb795c2f4 100644 --- a/src/main/resources/templates/welcome.html +++ b/src/main/resources/templates/welcome.html @@ -2,15 +2,15 @@ - + -

Welcome

-
-
- -
+

Welcome

+
+
+
+
- + \ No newline at end of file