瀏覽代碼

Added Mother to birth certificate form

Andrew Grant 5 月之前
父節點
當前提交
34d845b999
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      src/main/resources/templates/certificates/birthCertificate/form.html

+ 17 - 0
src/main/resources/templates/certificates/birthCertificate/form.html

@@ -273,6 +273,23 @@
                     </div>
                 </td>
             </tr>
+            <tr>
+            <td style="text-align: right;">
+                <label for="mother">Mother&nbsp;</label>
+            </td>
+            <td style="text-align: left;">
+                <select id="mother" name="mother" th:field="*{mother}">
+                    <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('mother')}">
+                    <ul class="text-danger">
+                        <li th:each="err : ${#fields.errors('mother')}" th:text="${err}"/>
+                    </ul>
+                </div>
+            </td>
+        </tr>
             <tr>
                 <td style="text-align: right; background-color: #FFC300">
                     <label for="informant">Informant&nbsp;</label>