From a217213d5ed8f499698c8e097bd501ff13863907 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Tue, 13 Jun 2017 17:06:40 +0000 Subject: [PATCH] fixed child display error --- .../samples/kidclinic/parent/ParentController.java | 2 +- .../resources/templates/kids/createOrUpdateKidForm.html | 4 ++-- src/main/resources/templates/parents/parentDetails.html | 6 +++--- update.sh | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/springframework/samples/kidclinic/parent/ParentController.java b/src/main/java/org/springframework/samples/kidclinic/parent/ParentController.java index 8770d2977..71d0c1243 100644 --- a/src/main/java/org/springframework/samples/kidclinic/parent/ParentController.java +++ b/src/main/java/org/springframework/samples/kidclinic/parent/ParentController.java @@ -67,7 +67,7 @@ class ParentController { return VIEWS_PARENT_CREATE_OR_UPDATE_FORM; } else { this.parents.save(parent); - return "redirect:/parent/" + parent.getId(); + return "redirect:/parents/" + parent.getId(); } } diff --git a/src/main/resources/templates/kids/createOrUpdateKidForm.html b/src/main/resources/templates/kids/createOrUpdateKidForm.html index 27502e5d3..fda0a0594 100644 --- a/src/main/resources/templates/kids/createOrUpdateKidForm.html +++ b/src/main/resources/templates/kids/createOrUpdateKidForm.html @@ -21,7 +21,7 @@ + th:replace="~{fragments/selectField :: select ('Gender', 'gender', ${gender})}" />
@@ -35,4 +35,4 @@ - \ No newline at end of file + diff --git a/src/main/resources/templates/parents/parentDetails.html b/src/main/resources/templates/parents/parentDetails.html index 86b7cd420..6670667f0 100644 --- a/src/main/resources/templates/parents/parentDetails.html +++ b/src/main/resources/templates/parents/parentDetails.html @@ -9,7 +9,7 @@

Parent Information

- +
@@ -48,7 +48,7 @@
Birth Date
-
Type
+
Gender
@@ -80,4 +80,4 @@ - \ No newline at end of file + diff --git a/update.sh b/update.sh index 2547f5b20..00740be2c 100755 --- a/update.sh +++ b/update.sh @@ -1 +1 @@ -./kill.sh && git pull && ./run.sh & +./kill.sh && git pull origin dev && ./run.sh &
Name