[EDIT] 収支詳細に編集ボタンを追加しました。
This commit is contained in:
@@ -4,32 +4,56 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>収支詳細</title>
|
<title>収支詳細</title>
|
||||||
|
<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">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<div th:replace="~{header :: header}"></div>
|
||||||
<h1 th:text="${today}"></h1>
|
<h1 th:text="${today}"></h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li th:each="transactionForm : ${transactionFormList}">
|
<li th:each="transactionForm : ${transactionFormList}" class="transaction-item">
|
||||||
<p>カテゴリ名:<span th:text="${transactionForm.categoryName}"></span>
|
|
||||||
<br>金額:<span th:text="${transactionForm.amount}"></span>
|
|
||||||
</p>
|
|
||||||
<form th:action="@{/transaction/delete}" method="post">
|
|
||||||
<input type="hidden" name="today" id="today" th:value="${today}">
|
|
||||||
<input type="hidden" name="transactionId" id="transactionId" value="${transactionForm.transactionId}">
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
カテゴリ名:
|
||||||
|
<span th:text="${transactionForm.categoryName}"></span>
|
||||||
|
<br>
|
||||||
|
金額:
|
||||||
|
<span th:text="${transactionForm.amount}"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="transaction-buttons">
|
||||||
|
|
||||||
|
<form th:action="@{/transaction/delete}" method="post">
|
||||||
|
<input type="hidden" name="today" th:value="${today}">
|
||||||
|
<input type="hidden" name="transactionId" th:value="${transactionForm.transactionId}">
|
||||||
<button type="submit">削除</button>
|
<button type="submit">削除</button>
|
||||||
</form>
|
</form>
|
||||||
<hr />
|
|
||||||
|
<form th:action="@{/transaction/update}" method="get">
|
||||||
|
<input type="hidden" name="today" th:value="${today}">
|
||||||
|
<input type="hidden" name="transactionId" th:value="${transactionForm.transactionId}">
|
||||||
|
<button type="submit">編集</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<hr>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form th:action="@{/transaction/create}" method="get">
|
<form th:action="@{/transaction/create}" method="get">
|
||||||
<input type="hidden" name="today" id="today" th:value="${today}">
|
<input type="hidden" name="today" id="today" th:value="${today}">
|
||||||
|
|
||||||
<button type="submit">新規登録</button>
|
<button type="submit">新規登録</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user