|
@@ -360,14 +360,15 @@
|
|
|
<label for="spouse">Spouse : </label>
|
|
<label for="spouse">Spouse : </label>
|
|
|
</td>
|
|
</td>
|
|
|
<td style="text-align: left;">
|
|
<td style="text-align: left;">
|
|
|
- <div>
|
|
|
|
|
- <input class="spouse" id="spouse"
|
|
|
|
|
- th:field="*{spouse}" type="text">
|
|
|
|
|
- <div th:if="${#fields.hasErrors('spouse')}">
|
|
|
|
|
- <ul class="text-danger">
|
|
|
|
|
- <li th:each="err : ${#fields.errors('spouse')}" th:text="${err}"/>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <select id="spouse" name="spouse" th:field="*{spouse}">
|
|
|
|
|
+ <option th:value="${''}" th:text="${''}"></option>
|
|
|
|
|
+ <option th:each="person : ${people}"
|
|
|
|
|
+ th:value="${person.id}" th:text="${person.toString()}"></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('spouse')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('spouse')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|