diff --git a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java index 199ca361190..413277dee07 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java @@ -77,12 +77,12 @@ public String initCreationForm() { @PostMapping("/owners/new") public String processCreationForm(@Valid Owner owner, BindingResult result, RedirectAttributes redirectAttributes) { if (result.hasErrors()) { - redirectAttributes.addFlashAttribute("error", "There was an error in creating the owner."); + redirectAttributes.addFlashAttribute("error", "Errorcreating the owner."); return VIEWS_OWNER_CREATE_OR_UPDATE_FORM; } this.owners.save(owner); - redirectAttributes.addFlashAttribute("message", "New Owner Created"); + redirectAttributes.addFlashAttribute("message", "Owner Created Successfully"); return "redirect:/owners/" + owner.getId(); } @@ -142,7 +142,7 @@ public String initUpdateOwnerForm() { public String processUpdateOwnerForm(@Valid Owner owner, BindingResult result, @PathVariable("ownerId") int ownerId, RedirectAttributes redirectAttributes) { if (result.hasErrors()) { - redirectAttributes.addFlashAttribute("error", "There was an error in updating the owner."); + redirectAttributes.addFlashAttribute("error", "Error updating the owner."); return VIEWS_OWNER_CREATE_OR_UPDATE_FORM; } @@ -154,7 +154,7 @@ public String processUpdateOwnerForm(@Valid Owner owner, BindingResult result, @ owner.setId(ownerId); this.owners.save(owner); - redirectAttributes.addFlashAttribute("message", "Owner Values Updated"); + redirectAttributes.addFlashAttribute("message", "Owner Values Updated Successfully"); return "redirect:/owners/{ownerId}"; } diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index 6225d1208c0..53e1b5e909a 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -11,5 +11,10 @@ |___| |_______| |___| |_______|_______|___|_| |__|___|_______| / / / / ==================================================================/_/_/_/ +Welcome to Pet Clinic + +Spring Petclinic is a Spring Boot application built using Maven or Gradle. +Java 17 or later is required for the build, and the application can run with Java 17 or newer. + :: Built with Spring Boot :: ${spring-boot.version} diff --git a/src/main/scss/petclinic.scss b/src/main/scss/petclinic.scss index 7f3e64ed25a..fdffff8592a 100644 --- a/src/main/scss/petclinic.scss +++ b/src/main/scss/petclinic.scss @@ -19,18 +19,18 @@ $spring-green: #6db33f; $spring-dark-green: #5fa134; $spring-brown: #34302D; $spring-grey: #838789; -$spring-light-grey: #f1f1f1; +$spring-white: #ffffff; -$body-bg: $spring-light-grey; +$body-bg: $spring-white; $text-color: $spring-brown; $link-color: $spring-dark-green; $link-hover-color: $spring-dark-green; -$navbar-default-link-color: $spring-light-grey; -$navbar-default-link-active-color: $spring-light-grey; -$navbar-default-link-hover-color: $spring-light-grey; +$navbar-default-link-color: $spring-white; +$navbar-default-link-active-color: $spring-white; +$navbar-default-link-hover-color: $spring-white; $navbar-default-link-hover-bg: $spring-green; -$navbar-default-toggle-icon-bar-bg: $spring-light-grey; +$navbar-default-toggle-icon-bar-bg: $spring-white; $navbar-default-toggle-hover-bg: transparent; $navbar-default-link-active-bg: $spring-green; @@ -38,7 +38,7 @@ $border-radius-base: 0; $border-radius-large: 0; $border-radius-small: 0; -$nav-tabs-active-link-hover-color: $spring-light-grey; +$nav-tabs-active-link-hover-color: $spring-white; $nav-tabs-active-link-hover-bg: $spring-brown; $nav-tabs-active-link-hover-border-color: $spring-brown; $nav-tabs-border-color: $spring-brown; @@ -49,7 +49,7 @@ $table-border-color: $spring-brown; .table > thead > tr > th { background-color: lighten($spring-brown, 3%); - color: $spring-light-grey; + color: $spring-white; } .table-filter { @@ -181,7 +181,7 @@ table td.action-column { .container-details-table th { background-color: lighten($spring-brown, 3%); - color: $spring-light-grey; + color: $spring-white; } .status-help-content-table td {