Pārlūkot izejas kodu

Death Certificate Form - added to cause of death

Andrew Grant 4 mēneši atpakaļ
vecāks
revīzija
09ee272bfc

+ 15 - 0
src/main/resources/templates/certificates/deathCertificate/form.html

@@ -336,6 +336,21 @@
                         </div>
                     </div>
                 </td>
+            <tr>
+                <td style="text-align: right; background-color: #C39BD3;">
+                    <label for="causeOfDeath">Cause of Death:&nbsp;</label>
+                </td>
+                <td style="text-align: left;">
+                    <div>
+                        <textarea class="causeOfDeath" id="causeOfDeath" rows="5" cols = "60"
+                                  th:field="*{causeOfDeath}" type="text"></textarea>
+                        <div th:if="${#fields.hasErrors('causeOfDeath')}">
+                            <ul class="text-danger">
+                                <li th:each="err : ${#fields.errors('causeOfDeath')}" th:text="${err}"/>
+                            </ul>
+                        </div>
+                    </div>
+                </td>
             </tr>
         </table>
             <button type="submit" class="btn btn-primary">Commit</button>