[EDIT]達成率が画面に表示されるようにしました
This commit is contained in:
@@ -13,22 +13,22 @@
|
||||
|
||||
<div>
|
||||
<label>目標名</label>
|
||||
<input type="text" th:field="*{goalTitle}">
|
||||
<input type="text" th:field="*{goalTitle}" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>目標説明</label>
|
||||
<textarea th:field="*{goalSubtitle}"></textarea>
|
||||
<textarea th:field="*{goalSubtitle}" required></textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>目標金額</label>
|
||||
<input type="number" th:field="*{targetAmount}">
|
||||
<input type="number" th:field="*{targetAmount}" required min="1">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>目標達成期限</label>
|
||||
<input type="date" th:field="*{deadline}">
|
||||
<input type="date" th:field="*{deadline}" th:min="${#temporals.format(#temporals.createNow(), 'yyyy-MM-dd')}" required>
|
||||
</div>
|
||||
<button type="submit">更新する</button>
|
||||
|
||||
|
||||
@@ -27,6 +27,13 @@
|
||||
<th>目標達成期限</th>
|
||||
<td th:text="${goalForm.deadline}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>達成率</th>
|
||||
<td th:text="${goalForm.achievementRate} + '%'"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<a th:href="@{/goal/edit}">編集する</a>
|
||||
|
||||
Reference in New Issue
Block a user