fix selects in book-edit
This commit is contained in:
parent
184e2d3540
commit
a4c04b94c0
@ -19,7 +19,7 @@
|
||||
<div th:if="${#fields.hasErrors('name')}" th:errors="*{name}" class="invalid-feedback"></div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<select class="form-control" id="typeId" name="typeId">
|
||||
<select class="form-control" id="typeId" name="typeId" th:field="*{typeId}">
|
||||
<option value="">Выберите жанр</option>
|
||||
<option th:each="type : ${types}"
|
||||
th:value="${type.id}"
|
||||
@ -29,7 +29,7 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="name" class="form-label">Авторы:</label>
|
||||
<select multiple="true" class="form-control" id="authorsId" name="authorsId">
|
||||
<select multiple="true" class="form-control" id="authorsId" name="authorsId" th:field="*{authorsId}">
|
||||
<option th:each="author : ${authors}"
|
||||
th:value="${author.id}"
|
||||
th:text="${author.name}">
|
||||
|
Loading…
Reference in New Issue
Block a user