18 Commits

Author SHA1 Message Date
acd7534fdb Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/transaction_detail.html
2026-09-28 16:38:26 +09:00
s-choi
add6a85c64 Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-choi 2026-09-28 16:35:05 +09:00
s-choi
fd74dee965 [FIX] 固定費で登録する際、収支区分が自動で入るように修正しました。 2026-09-28 16:32:02 +09:00
s-choi
7aa8e31bfd [EDIT] プロフィール編集画面の項目を修正しました。(パスワード→生年月日)、ボタンのテキストを変更しました。(確認→確定) 2026-09-28 16:04:31 +09:00
s-choi
e3af89a694 [STYLE] コース一覧の下部の間隔を調整しました。 2026-09-28 16:03:19 +09:00
154e6787d4 [FIX]取引新規登録ボタンを一つにし、デザインを統一しました 2026-09-28 15:37:41 +09:00
75f2f7c8d0 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into n-kawahito 2026-09-28 15:35:54 +09:00
ac101172d2 [EDIT]生年月日の情報取得用コードの追記 2026-09-28 15:35:30 +09:00
ee5ec5009d Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-28 15:28:53 +09:00
7604e9ee76 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-28 14:22:22 +09:00
26fa2365e8 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/select_course.html
2026-09-28 09:43:26 +09:00
5adb527d7a Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 14:23:20 +09:00
e54e0133f7 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 14:03:37 +09:00
c3dae348bf no message 2026-09-25 13:38:58 +09:00
ea1e18ad93 Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 13:35:56 +09:00
bb3b8965b2 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/menu.html
#	src/main/resources/templates/select_course.html
#	src/main/resources/templates/transaction_detail.html
2026-09-25 13:28:04 +09:00
3b239d07bd Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 13:17:12 +09:00
0c54a42b97 Merge branch 'k-oshita' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/menu.html
#	src/main/resources/templates/transaction_detail.html
2026-09-25 13:14:52 +09:00
12 changed files with 116 additions and 74 deletions

View File

@@ -58,6 +58,7 @@ public class ProfileServiceImpl implements ProfileService{
userEntity.setSaving(profileEditForm.getSaving()); userEntity.setSaving(profileEditForm.getSaving());
userEntity.setAnnualIncome(profileEditForm.getAnnualIncome()); userEntity.setAnnualIncome(profileEditForm.getAnnualIncome());
userEntity.setMonthlyBudget(profileEditForm.getMonthlyBudget()); userEntity.setMonthlyBudget(profileEditForm.getMonthlyBudget());
userEntity.setBirthDate(profileEditForm.getBirthDate());
userRepository.save(userEntity); userRepository.save(userEntity);
} }
} }

View File

@@ -1,5 +0,0 @@
package com.example.demo.app.infra.entity;
public class TestController6 {
}

View File

@@ -54,9 +54,11 @@ public class ProfileController {
new ProfileEditForm( new ProfileEditForm(
profileModel.getUserName(), profileModel.getUserName(),
profileModel.getMailAddress(), profileModel.getMailAddress(),
profileModel.getBirthDate(),
profileModel.getSaving(), profileModel.getSaving(),
profileModel.getAnnualIncome(), profileModel.getAnnualIncome(),
profileModel.getMonthlyBudget()); profileModel.getMonthlyBudget(),
profileModel.getBirthDate());
model.addAttribute(PageReturnAttributeKeyword.PROFILE_EDIT_FORM, profileEditForm); model.addAttribute(PageReturnAttributeKeyword.PROFILE_EDIT_FORM, profileEditForm);
return TransitionTargetPageNameKeyword.PROFILE_EDIT_HTML; return TransitionTargetPageNameKeyword.PROFILE_EDIT_HTML;

View File

@@ -237,6 +237,8 @@ public class TransactionController {
model.addAttribute(PageReturnAttributeKeyword.INCOME_LIST, incomeList); model.addAttribute(PageReturnAttributeKeyword.INCOME_LIST, incomeList);
model.addAttribute(PageReturnAttributeKeyword.TRANSACTION_FORM, transactionForm); model.addAttribute(PageReturnAttributeKeyword.TRANSACTION_FORM, transactionForm);
session.setAttribute("tType", String.valueOf(transactionForm.getTransactionType()));
model.addAttribute(PageReturnAttributeKeyword.CATEGORY_FORM_LIST, categoryFormList); model.addAttribute(PageReturnAttributeKeyword.CATEGORY_FORM_LIST, categoryFormList);

View File

@@ -1,5 +1,7 @@
package com.example.demo.app.presentation.form; package com.example.demo.app.presentation.form;
import java.time.LocalDate;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@@ -10,7 +12,9 @@ import lombok.NoArgsConstructor;
public class ProfileEditForm { public class ProfileEditForm {
private String userName; private String userName;
private String mailAddress; private String mailAddress;
private LocalDate birthDate;
private Integer saving; private Integer saving;
private Integer annualIncome; private Integer annualIncome;
private Integer monthlyBudget; private Integer monthlyBudget;
private LocalDate birthDate;
} }

View File

@@ -6,12 +6,6 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head> </head>
<body class="pb-5 pt-5"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}">
</div>
</head>
<body>
<div th:replace="~{header :: header}"> <div th:replace="~{header :: header}">
</div> </div>

View File

@@ -83,6 +83,7 @@
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
<script> <script>
const transactionType = document.getElementById("transactionType"); const transactionType = document.getElementById("transactionType");
const categoryId = document.getElementById("categoryId"); const categoryId = document.getElementById("categoryId");
@@ -90,6 +91,7 @@
const expenseList = document.getElementsByClassName("expenseListClass"); const expenseList = document.getElementsByClassName("expenseListClass");
const incomeList = document.getElementsByClassName("incomeListClass"); const incomeList = document.getElementsByClassName("incomeListClass");
transactionType.addEventListener("change", function () { transactionType.addEventListener("change", function () {
if (this.value === "1") { if (this.value === "1") {

View File

@@ -138,6 +138,8 @@
</div> </div>
</div> </div>
<div class="card shadow-sm"> <div class="card shadow-sm">

View File

@@ -52,13 +52,15 @@
<div class="mb-3"> <div class="mb-3">
<label class="form-label"> <label class="form-label">
パスワード 生年月日
</label> </label>
<input type="password" <input type="date"
class="form-control" class="form-control"
value="********" id="birthDate"
disabled> name="birthDate"
th:value="*{birthDate}"
required>
</div> </div>
<div class="mb-3"> <div class="mb-3">
@@ -105,7 +107,7 @@
<div class="d-grid"> <div class="d-grid">
<button type="submit" <button type="submit"
class="btn btn-primary"> class="btn btn-primary">
確認 確定
</button> </button>
</div> </div>

View File

@@ -8,8 +8,9 @@
<title>コース選択</title> <title>コース選択</title>
</head> </head>
<body> <body style="padding-bottom: 120px">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<h1 class="page-title">コース選択</h1> <h1 class="page-title">コース選択</h1>
<th:block th:if="${mode == 'change'}"> <th:block th:if="${mode == 'change'}">

View File

@@ -39,7 +39,7 @@
収入・支出 収入・支出
</label> </label>
<select id="transactionType" class="form-select" th:field="*{transactionType}" required> <select id="transactionType" class="form-select" name="transactionType" required>
<option value=""> <option value="">
選択してください 選択してください
@@ -114,13 +114,22 @@
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
<script> <script inline="javascript">
const transactionType = document.getElementById("transactionType"); const transactionType = document.getElementById("transactionType");
const categoryId = document.getElementById("categoryId"); const categoryId = document.getElementById("categoryId");
const expenseList = document.getElementsByClassName("expenseListClass"); const expenseList = document.getElementsByClassName("expenseListClass");
const incomeList = document.getElementsByClassName("incomeListClass"); const incomeList = document.getElementsByClassName("incomeListClass");
const tType = '[[${session.tType}]]';
if (tType == "0") {
transactionType.value = 1;
} else {
transactionType.value = 2;
}
transactionType.addEventListener("change", function () { transactionType.addEventListener("change", function () {
if (this.value === "1") { if (this.value === "1") {

View File

@@ -1,125 +1,153 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <html xmlns:th="http://www.thymeleaf.org">
<head> <head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1" http-equiv="Content-Type"> <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1" http-equiv="Content-Type">
<title>収支詳細</title> <title>収支詳細</title>
<link rel="stylesheet" th:href="@{/css/transaction_detail.css}"> <link rel="stylesheet" th:href="@{/css/transaction_detail.css}">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" th:href="@{/css/style.css}"> <link rel="stylesheet" th:href="@{/css/style.css}">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body style="padding-top:80px; padding-bottom:80px;">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<div class="main-container"> <div class="main-container">
<h2 class="page-title" <h2 class="page-title"
th:text="${today}"> th:text="${today}">
</h2> </h2>
<div th:each="transactionForm : ${transactionFormList}" <div th:each="transactionForm : ${transactionFormList}"
class="card shadow-sm mb-3"> class="card shadow-sm mb-3">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<span class="fw-bold" <span class="fw-bold"
th:text="${transactionForm.categoryName}"> th:text="${transactionForm.categoryName}">
</span> </span>
<span th:text="'¥' + ${transactionForm.amount}"> <span th:text="'¥' + ${transactionForm.amount}">
</span> </span>
</div> </div>
<div class="d-flex justify-content-end gap-2 mt-3"> <div class="d-flex justify-content-end gap-2 mt-3">
<form th:action="@{/transaction/update}" <form th:action="@{/transaction/update}"
method="get"> method="get">
<input type="hidden" <input type="hidden"
name="today" name="today"
th:value="${today}"> th:value="${today}">
<input type="hidden" <input type="hidden"
name="transactionId" name="transactionId"
th:value="${transactionForm.transactionId}"> th:value="${transactionForm.transactionId}">
<button class="btn btn-sm btn-primary" <button class="btn btn-sm btn-primary"
type="submit"> type="submit">
編集 編集
</button> </button>
</form> </form>
<form th:action="@{/transaction/delete}" <form th:action="@{/transaction/delete}"
method="post"> method="post">
<input type="hidden" <input type="hidden"
name="today" name="today"
th:value="${today}"> th:value="${today}">
<input type="hidden" <input type="hidden"
name="transactionId" name="transactionId"
th:value="${transactionForm.transactionId}"> th:value="${transactionForm.transactionId}">
<button class="btn btn-sm btn-danger" <button class="btn btn-sm btn-danger"
type="submit"> type="submit">
削除 削除
</button> </button>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
<div class="d-grid mt-4"> <div class="d-grid mt-4">
<form th:action="@{/transaction/create}" <form th:action="@{/transaction/create}"
method="get"> method="get">
<input type="hidden" <input type="hidden"
name="today" name="today"
id="today"
th:value="${today}"> th:value="${today}">
<button class="btn btn-success w-100" <button class="btn btn-success w-100"
type="submit"> type="submit">
新規登録 新規登録
</button> </button>
</form> </form>
</div> </div>
<div class="d-grid mt-4">
<form th:action="@{/fixed-cost/list}" method="get">
<input type="hidden"
name="today"
id="today"
th:value="${today}">
<button class="btn btn-dark w-100"
type="submit">
固定費一覧
</button>
</form>
</div>
<div class="d-grid mt-4">
<form th:action="@{/category/list}"
method="get">
<input type="hidden"
name="today"
id="today"
th:value="${today}">
<button class="btn btn-dark w-100"
type="submit">
カテゴリ一覧
</button>
</form>
</div>
</div> </div>
<form th:action="@{/transaction/create}" method="get">
<input type="hidden" name="today" id="today" th:value="${today}">
<button type="submit">新規登録</button>
</form>
<form th:action="@{/fixed-cost/list}" method="get">
<input type="hidden" name="today" th:value="${today}">
<button type="submit">固定費一覧</button>
</form>
<form th:action="@{/category/list}" method="get">
<input type="hidden" name="today" th:value="${today}">
<button type="submit">カテゴリ一覧</button>
</form>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>
</html> </html>