[FIX] 新規会員登録画面での生年月日のmax値を今日の日付へ変更しました。新規会員登録画面で一回コースを選択したら、変更できないように修正しました。

This commit is contained in:
s-choi
2026-09-28 10:45:13 +09:00
parent d5b18ae3ad
commit 503ac3f3db
3 changed files with 19 additions and 7 deletions

View File

@@ -44,14 +44,14 @@
<div class="mb-3">
<label for="secretQuestionId" class="form-label">秘密の質問</label>
<select id="secretQuestionId" th:field="*{secretQuestionId}" required readonly>
<option value="">選択してください</option>
<select id="secretQuestionId" th:field="*{secretQuestionId}" required disabled>
<option value="" readonly>選択してください</option>
<option th:each="question : ${session.questionList}" th:value="${question.secretQuestionId}"
th:text="${question.questionText}">
th:text="${question.questionText}" readonly>
</option>
</select>
</div>
<div class="mb-3">
<label for="secretAnswer" class="form-label">秘密の質問の回答</label>
<input type="text" id="secretAnswer" class="form-control" th:field="*{secretAnswer}" maxlength="100" readonly>
@@ -82,7 +82,7 @@
<div class="d-flex justify-content-between align-items-center">
<input type="hidden" class="form-control" th:field="*{courseId}">
<span th:text="${selectedCourseName}">未選択</span>
<button type="submit" class="btn btn-outline-primary btn-sm">コース選択</button>
<button type="submit" class="btn btn-outline-primary btn-sm" disabled>コース選択</button>
</div>
</div>

View File

@@ -55,7 +55,7 @@
</option>
</select>
</div>
<div class="mb-3">
<label for="secretAnswer" class="form-label">秘密の質問の回答</label>
<input type="text" id="secretAnswer" class="form-control" th:field="*{secretAnswer}"
@@ -89,7 +89,7 @@
<div class="d-flex justify-content-between align-items-center">
<input type="hidden" th:field="*{courseId}">
<span th:text="${selectedCourseName}">未選択</span>
<button type="submit" class="btn btn-outline-primary btn-sm">
<button class="btn btn-outline-primary btn-sm" disabled>
コース選択
</button>
</div>
@@ -137,6 +137,7 @@
birthDate.setAttribute("max", year + "-" + month + "-" + day);
}
}
</script>
</body>