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);
|
||||
model.addAttribute("mode", "regist");
|
||||
model.addAttribute("currentCourseId", 4);
|
||||
model.addAttribute("currentCourseId", courseService.findByName("バランスコース"));
|
||||
model.addAttribute("courseList", CourseForm.convertFrom(courseService.findAll()));
|
||||
model.addAttribute("courseInfoList", CourseInfoForm.convertFrom(courseInfoService.findAll()));
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<div>
|
||||
<label>目標金額</label>
|
||||
<input type="number" th:field="*{targetAmount}" required min="1">
|
||||
<input type="number" th:field="*{targetAmount}" min="0" max="1000000000" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
class="form-control"
|
||||
th:field="*{saving}"
|
||||
min="0"
|
||||
max="1000000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
@@ -82,6 +83,7 @@
|
||||
class="form-control"
|
||||
th:field="*{annualIncome}"
|
||||
min="0"
|
||||
max="100000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
@@ -94,6 +96,7 @@
|
||||
class="form-control"
|
||||
th:field="*{monthlyBudget}"
|
||||
min="0"
|
||||
max="10000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -29,17 +29,16 @@
|
||||
method="post">
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
<label for="transactionDate"
|
||||
class="form-label">
|
||||
日付
|
||||
</label>
|
||||
|
||||
<input type="date"
|
||||
id="transactionDate"
|
||||
class="form-control"
|
||||
th:field="*{transactionDate}">
|
||||
|
||||
class="form-select"
|
||||
name="transactionDate"
|
||||
th:value="*{transactionDate}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@@ -51,7 +50,8 @@
|
||||
|
||||
<select id="transactionType"
|
||||
class="form-select"
|
||||
th:field="*{transactionType}">
|
||||
th:field="*{transactionType}"
|
||||
required>
|
||||
|
||||
<option value="">
|
||||
選択してください
|
||||
@@ -78,7 +78,8 @@
|
||||
|
||||
<select id="categoryId"
|
||||
class="form-select"
|
||||
th:field="*{categoryId}">
|
||||
th:field="*{categoryId}"
|
||||
required>
|
||||
|
||||
<option value="">
|
||||
選択してください
|
||||
@@ -105,7 +106,9 @@
|
||||
class="form-control"
|
||||
th:field="*{amount}"
|
||||
min="0"
|
||||
placeholder="金額を入力してください">
|
||||
max="100000000"
|
||||
placeholder="金額を入力してください"
|
||||
required>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -44,7 +44,8 @@
|
||||
id="transactionDate"
|
||||
class="form-control"
|
||||
name="transactionDate"
|
||||
th:value="*{transactionDate}">
|
||||
th:value="*{transactionDate}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@@ -56,7 +57,8 @@
|
||||
|
||||
<select id="transactionType"
|
||||
class="form-select"
|
||||
th:field="*{transactionType}">
|
||||
th:field="*{transactionType}"
|
||||
required>
|
||||
|
||||
<option value="">
|
||||
選択してください
|
||||
@@ -83,7 +85,8 @@
|
||||
|
||||
<select id="categoryId"
|
||||
class="form-select"
|
||||
th:field="*{categoryId}">
|
||||
th:field="*{categoryId}"
|
||||
required>
|
||||
|
||||
<option value="">
|
||||
選択してください
|
||||
@@ -110,7 +113,9 @@
|
||||
class="form-control"
|
||||
th:field="*{amount}"
|
||||
min="0"
|
||||
placeholder="金額を入力してください">
|
||||
max="100000000"
|
||||
placeholder="金額を入力してください"
|
||||
required>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -138,6 +138,7 @@
|
||||
class="form-control"
|
||||
th:field="*{saving}"
|
||||
min="0"
|
||||
max="1000000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
@@ -152,6 +153,7 @@
|
||||
class="form-control"
|
||||
th:field="*{annualIncome}"
|
||||
min="0"
|
||||
max="100000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
@@ -166,13 +168,14 @@
|
||||
class="form-control"
|
||||
th:field="*{monthlyBudget}"
|
||||
min="0"
|
||||
max="10000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="goalId"
|
||||
class="form-label">
|
||||
目標ID
|
||||
目標貯金額
|
||||
</label>
|
||||
|
||||
<input type="number"
|
||||
@@ -180,6 +183,7 @@
|
||||
class="form-control"
|
||||
th:field="*{goalId}"
|
||||
min="0"
|
||||
max="1000000000"
|
||||
required>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user