Browse Source

Image selector added to person form controller

Andrew Grant 2 months ago
parent
commit
e7d668c33c
1 changed files with 13 additions and 0 deletions
  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>