diff --git a/src/main/java/com/example/demo/app/presentation/controller/GoalController.java b/src/main/java/com/example/demo/app/presentation/controller/GoalController.java index 61133c1..fdbf9c4 100644 --- a/src/main/java/com/example/demo/app/presentation/controller/GoalController.java +++ b/src/main/java/com/example/demo/app/presentation/controller/GoalController.java @@ -275,7 +275,9 @@ public class GoalController { int currentAmount = goalService.getCurrentAmount(userId); - model.addAttribute(PageReturnAttributeKeyword.CURRENT_AMOUNT, currentAmount); + System.out.println("************************currentAmount : " + currentAmount); + + session.setAttribute(PageReturnAttributeKeyword.CURRENT_AMOUNT, currentAmount); return TransitionTargetPageNameKeyword.GOAL_CREATE_HTML; } @@ -292,7 +294,7 @@ public class GoalController { model.addAttribute(PageReturnAttributeKeyword.MESSAGE, "現在所持金より高い金額を設定してください。"); return TransitionTargetPageNameKeyword.GOAL_CREATE_HTML; } - + return TransitionTargetPageNameKeyword.REDIRECT + TransitionTargetPageNameKeyword.GOAL; } diff --git a/src/main/resources/static/css/style.css b/src/main/resources/static/css/style.css index 8632b09..b7ebef2 100644 --- a/src/main/resources/static/css/style.css +++ b/src/main/resources/static/css/style.css @@ -214,6 +214,10 @@ td:hover { vertical-align: middle; } +.goal { + min-width: 300px; +} + /* ======================= ボタン ======================= */ diff --git a/src/main/resources/templates/fixed_cost_create.html b/src/main/resources/templates/fixed_cost_create.html index 0c478d1..8217b49 100644 --- a/src/main/resources/templates/fixed_cost_create.html +++ b/src/main/resources/templates/fixed_cost_create.html @@ -37,7 +37,7 @@