Skip to content

Commit

Permalink
Chapter 13 Spa-Day Studio LaunchCodeEducation#1
Browse files Browse the repository at this point in the history
  • Loading branch information
mark115001 committed May 3, 2024
1 parent dfc573c commit 8a73960
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public String customerForm () {
@PostMapping(value="")
public String spaMenu(@RequestParam String name, @RequestParam String skintype, @RequestParam String manipedi, Model model) {

model.addAttribute("name", name);
model.addAttribute("skintype", skintype);
model.addAttribute("manipedi", manipedi);

ArrayList<String> facials = new ArrayList<>();
facials.add("Microdermabrasion");
facials.add("Hydrofacial");
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions src/main/resources/templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@
<body>
<h1>My Super Fancy Spa</h1>
<div id = "clientProfile">
<p th:text="${name}"></p>
<p th:text="${skintype}"></p>
<p th:text="${manipedi}"></p>
</div>
<div id = "servicesMenu">
<h2>Menu of Available Services</h2>

<h3>Facial Treatments</h3>
<table>
<th:block th:each="service : ${appropriateFacials}"...>
<tr>
<td th:text="${service"></td>
</tr>
</th:block>
</table>
</div>
</body>
</html>

0 comments on commit 8a73960

Please sign in to comment.