Compare commits
5 Commits
d0e14ce2dc
...
907b7c1f9b
| Author | SHA1 | Date | |
|---|---|---|---|
| 907b7c1f9b | |||
| 3dba5e5322 | |||
|
|
1e0cc3a953 | ||
|
|
67906caf90 | ||
|
|
0f057bcd36 |
@@ -32,7 +32,7 @@ public class GlobalExceptionHandler {
|
|||||||
"システムエラーが発生しました。"
|
"システムエラーが発生しました。"
|
||||||
+ "初めからやり直してください。");
|
+ "初めからやり直してください。");
|
||||||
|
|
||||||
return "error";
|
return "redirect:/login";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class CourseController {
|
|||||||
|
|
||||||
session.setAttribute("userForm", userForm);
|
session.setAttribute("userForm", userForm);
|
||||||
model.addAttribute("mode", "regist");
|
model.addAttribute("mode", "regist");
|
||||||
model.addAttribute("currentCourseId", 4);
|
model.addAttribute("currentCourseId", courseService.findByName("バランスコース"));
|
||||||
model.addAttribute("courseList", CourseForm.convertFrom(courseService.findAll()));
|
model.addAttribute("courseList", CourseForm.convertFrom(courseService.findAll()));
|
||||||
model.addAttribute("courseInfoList", CourseInfoForm.convertFrom(courseInfoService.findAll()));
|
model.addAttribute("courseInfoList", CourseInfoForm.convertFrom(courseInfoService.findAll()));
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label>目標金額</label>
|
<label>目標金額</label>
|
||||||
<input type="number" th:field="*{targetAmount}" required min="1">
|
<input type="number" th:field="*{targetAmount}" min="0" max="1000000000" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{saving}"
|
th:field="*{saving}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="1000000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -82,6 +83,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{annualIncome}"
|
th:field="*{annualIncome}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="100000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -94,6 +96,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{monthlyBudget}"
|
th:field="*{monthlyBudget}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="10000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -29,17 +29,16 @@
|
|||||||
method="post">
|
method="post">
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
|
|
||||||
<label for="transactionDate"
|
<label for="transactionDate"
|
||||||
class="form-label">
|
class="form-label">
|
||||||
日付
|
日付
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="date"
|
<input type="date"
|
||||||
id="transactionDate"
|
id="transactionDate"
|
||||||
class="form-control"
|
class="form-select"
|
||||||
th:field="*{transactionDate}">
|
name="transactionDate"
|
||||||
|
th:value="*{transactionDate}"
|
||||||
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
@@ -51,7 +50,8 @@
|
|||||||
|
|
||||||
<select id="transactionType"
|
<select id="transactionType"
|
||||||
class="form-select"
|
class="form-select"
|
||||||
th:field="*{transactionType}">
|
th:field="*{transactionType}"
|
||||||
|
required>
|
||||||
|
|
||||||
<option value="">
|
<option value="">
|
||||||
選択してください
|
選択してください
|
||||||
@@ -78,7 +78,8 @@
|
|||||||
|
|
||||||
<select id="categoryId"
|
<select id="categoryId"
|
||||||
class="form-select"
|
class="form-select"
|
||||||
th:field="*{categoryId}">
|
th:field="*{categoryId}"
|
||||||
|
required>
|
||||||
|
|
||||||
<option value="">
|
<option value="">
|
||||||
選択してください
|
選択してください
|
||||||
@@ -105,7 +106,9 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{amount}"
|
th:field="*{amount}"
|
||||||
min="0"
|
min="0"
|
||||||
placeholder="金額を入力してください">
|
max="100000000"
|
||||||
|
placeholder="金額を入力してください"
|
||||||
|
required>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
id="transactionDate"
|
id="transactionDate"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
name="transactionDate"
|
name="transactionDate"
|
||||||
th:value="*{transactionDate}">
|
th:value="*{transactionDate}"
|
||||||
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
@@ -56,7 +57,8 @@
|
|||||||
|
|
||||||
<select id="transactionType"
|
<select id="transactionType"
|
||||||
class="form-select"
|
class="form-select"
|
||||||
th:field="*{transactionType}">
|
th:field="*{transactionType}"
|
||||||
|
required>
|
||||||
|
|
||||||
<option value="">
|
<option value="">
|
||||||
選択してください
|
選択してください
|
||||||
@@ -83,7 +85,8 @@
|
|||||||
|
|
||||||
<select id="categoryId"
|
<select id="categoryId"
|
||||||
class="form-select"
|
class="form-select"
|
||||||
th:field="*{categoryId}">
|
th:field="*{categoryId}"
|
||||||
|
required>
|
||||||
|
|
||||||
<option value="">
|
<option value="">
|
||||||
選択してください
|
選択してください
|
||||||
@@ -110,7 +113,9 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{amount}"
|
th:field="*{amount}"
|
||||||
min="0"
|
min="0"
|
||||||
placeholder="金額を入力してください">
|
max="100000000"
|
||||||
|
placeholder="金額を入力してください"
|
||||||
|
required>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{saving}"
|
th:field="*{saving}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="1000000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -152,6 +153,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{annualIncome}"
|
th:field="*{annualIncome}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="100000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -166,13 +168,14 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{monthlyBudget}"
|
th:field="*{monthlyBudget}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="10000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="goalId"
|
<label for="goalId"
|
||||||
class="form-label">
|
class="form-label">
|
||||||
目標ID
|
目標貯金額
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="number"
|
<input type="number"
|
||||||
@@ -180,6 +183,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
th:field="*{goalId}"
|
th:field="*{goalId}"
|
||||||
min="0"
|
min="0"
|
||||||
|
max="1000000000"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user