[EDIT] 目標を表示する機能を追加しました。
This commit is contained in:
@@ -9,18 +9,15 @@
|
||||
<h1>目標編集</h1>
|
||||
|
||||
<form th:action="@{/goal/update}" th:object="${goalForm}" method="post">
|
||||
|
||||
<input type="hidden" th:field="*{goalId}">
|
||||
|
||||
<!--
|
||||
<div>
|
||||
<label>目標名</label>
|
||||
<input type="text" th:field="*{goalTitle}">
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div>
|
||||
<label>目標補足説明</label>
|
||||
<label>目標説明</label>
|
||||
<textarea th:field="*{goalSubtitle}"></textarea>
|
||||
</div>
|
||||
|
||||
@@ -33,8 +30,6 @@
|
||||
<label>目標達成期限</label>
|
||||
<input type="date" th:field="*{deadline}">
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit">更新する</button>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -9,16 +9,14 @@
|
||||
<h1>目標詳細</h1>
|
||||
|
||||
<table>
|
||||
<!--
|
||||
|
||||
<tr>
|
||||
<th>目標名</th>
|
||||
<td th:text="${goalForm.goalTitle}"></td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<th>目標補足説明</th>
|
||||
<th>目標説明</th>
|
||||
<td th:text="${goalForm.goalSubtitle}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -31,7 +29,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<a th:href="@{/goal/{goalId}/edit(goalId=${goalForm.goalId})}">編集する</a>
|
||||
|
||||
<a th:href="@{/goal/edit}">編集する</a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user