Explorar o código

Image selector added to person form controller

Andrew Grant hai 2 meses
pai
achega
e7d668c33c
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      src/main/resources/templates/person/form.html

+ 13 - 0
src/main/resources/templates/person/form.html

@@ -86,6 +86,19 @@ rounded-3 text-center p-4">
                            th:field="*{recordedYearOfBirth}" type="text" readonly>
                 </td>
             </tr>
+            <tr>
+                <td style="text-align: right;">
+                    <label for="image">Image : &nbsp;</label>
+                </td>
+                <td>
+                    <select id="image" name="region" th:field="*{image}"
+                            class="form-control" th:errorclass="has-error">
+                        <option th:value="${''}" th:text="${''}"></option>
+                        <option th:each="image : ${images}"
+                                th:value="${image.id}" th:text="${image.name}"></option>
+                    </select>
+                </td>
+            </tr>
             <tr>
                 <td>&nbsp;</td>
             </tr>