form.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. <!DOCTYPE html>
  2. <!--suppress XmlHighlighting -->
  3. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  4. <head>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. <!-- Bootstrap CSS -->
  9. <!--suppress SpellCheckingInspection -->
  10. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
  11. integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  12. <!--suppress SpellCheckingInspection -->
  13. <script src="https://code.jquery.com/jquery-3.6.0.min.js"
  14. integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  15. <title>Grants - person</title>
  16. </head>
  17. <body>
  18. <!--/*@thymesVar id="deathCertificateCommand" type="scot.carricksoftware.grants.commands.certificates.deathcertificates.DeathCertificateCommand"*/-->
  19. <div th:insert="~{fragments/layout::banner}"></div>
  20. <div class="container border border-info rounded-3 text-center p-4">
  21. <h3>Death Certificate Details</h3>
  22. <form th:object="${deathCertificateCommand}" th:action="@{/deathCertificate}" method="post">
  23. <div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
  24. <p>Please Correct The Errors Below</p>
  25. </div>
  26. <table style="width:100%;">
  27. <tr>
  28. <td style="text-align: right;">
  29. <label for="id"><span style="color: rgb(255,0,0);">*</span>Database Id :&nbsp;</label>
  30. </td>
  31. <td style="text-align: left;">
  32. <input class="form-control" id="id"
  33. th:field="*{id}" type="text" readonly>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td style="text-align: right;">
  38. <label for="certificateNumber">Certificate Number :&nbsp;</label>
  39. </td>
  40. <td style="text-align: left;">
  41. <input class="form-control" id="certificateNumber"
  42. th:field="*{certificateNumber}" type="text">
  43. <div th:if="${#fields.hasErrors('certificateNumber')}">
  44. <ul class="text-danger">
  45. <li th:each="err : ${#fields.errors('certificateNumber')}" th:text="${err}"/>
  46. </ul>
  47. </div>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td style="text-align: right;">
  52. <label for="certificateSource">Certificate Source&nbsp;:&nbsp;</label>
  53. </td>
  54. <td style="text-align: left;">
  55. <div>
  56. <select id="certificateSource" name="certificateSource" th:field="*{certificateSource}">
  57. <option th:value="${''}" th:text="${''}"></option>
  58. <!--/*@thymesVar id="organisations" type="scot.carricksoftware.grants.domains.places.Organisation"*/-->
  59. <option th:each="organisation : ${organisations}"
  60. th:value="${organisation.id}" th:text="${organisation.toString()}"></option>
  61. </select>
  62. <div th:if="${#fields.hasErrors('certificateSource')}">
  63. <ul class="text-danger">
  64. <li th:each="err : ${#fields.errors('certificateSource')}" th:text="${err}"/>
  65. </ul>
  66. </div>
  67. </div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td style="text-align: right;">
  72. <label for="certificateDate">Certificate Date (dd/mm/yyyy) :&nbsp;</label>
  73. </td>
  74. <td style="text-align: left;">
  75. <input class="form-control" id="certificateDate"
  76. th:field="*{certificateDate}" type="text">
  77. <div th:if="${#fields.hasErrors('certificateDate')}">
  78. <ul class="text-danger">
  79. <li th:each="err : ${#fields.errors('certificateDate')}" th:text="${err}"/>
  80. </ul>
  81. </div>
  82. </td>
  83. </tr>
  84. <tr style="border-bottom: 5px solid #ccc;">
  85. <td style="text-align: right;">
  86. <label for="certificateType">Certificate Type :&nbsp;</label>
  87. </td>
  88. <td style="text-align: left;">
  89. <div>
  90. <select id="certificateType" style="width: 200px;" name="certificateType"
  91. th:field="*{certificateType}">
  92. <option th:value="${''}" th:text="${''}"></option>
  93. <option th:each="value : ${T(scot.carricksoftware.grants.enums.certificates.CertificateType).values()}"
  94. th:value="${value}" th:text="${value.label}"></option>
  95. </select>
  96. </div>
  97. <div th:if="${#fields.hasErrors('certificateType')}">
  98. <ul class="text-danger">
  99. <li th:each="err : ${#fields.errors('certificateType')}" th:text="${err}"/>
  100. </ul>
  101. </div>
  102. </tr>
  103. <tr>
  104. <td style="text-align: right;">
  105. <label for="registrationAuthority">Registration Authority :&nbsp;</label>
  106. </td>
  107. <td style="text-align: left;">
  108. <div>
  109. <select id="registrationAuthority" style="width: 200px;" name="registrationAuthority"
  110. th:field="*{registrationAuthority}">
  111. <option th:value="${''}" th:text="${''}"></option>
  112. <!--/*@thymesVar id="organisations" type="scot.carricksoftware.grants.domains.places.Organisation"*/-->
  113. <option th:each="organisation : ${organisations}"
  114. th:value="${organisation.id}" th:text="${organisation.name}"></option>
  115. </select>
  116. </div>
  117. <div th:if="${#fields.hasErrors('registrationAuthority')}">
  118. <ul class="text-danger">
  119. <li th:each="err : ${#fields.errors('registrationAuthority')}" th:text="${err}"/>
  120. </ul>
  121. </div>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td style="text-align: right;">
  126. <label for="volume">Volume :&nbsp;</label>
  127. </td>
  128. <td style="text-align: left;">
  129. <div>
  130. <input class="volume" id="volume"
  131. th:field="*{volume}" type="text">
  132. <div th:if="${#fields.hasErrors('volume')}">
  133. <ul class="text-danger">
  134. <li th:each="err : ${#fields.errors('volume')}" th:text="${err}"/>
  135. </ul>
  136. </div>
  137. </div>
  138. </td>
  139. </tr>
  140. <tr style="border-bottom: 5px solid #ccc;">
  141. <td style="text-align: right;">
  142. <label for="number">Number :&nbsp;</label>
  143. </td>
  144. <td style="text-align: left;">
  145. <div>
  146. <input class="number" id="number"
  147. th:field="*{number}" type="text">
  148. <div th:if="${#fields.hasErrors('number')}">
  149. <ul class="text-danger">
  150. <li th:each="err : ${#fields.errors('number')}" th:text="${err}"/>
  151. </ul>
  152. </div>
  153. </div>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td style="text-align: right;">
  158. <label for="deceased">Deceased :&nbsp;</label>
  159. </td>
  160. <td style="text-align: left;">
  161. <select id="deceased" name="deceased" th:field="*{deceased}">
  162. <option th:value="${''}" th:text="${''}"></option>
  163. <option th:each="person : ${people}"
  164. th:value="${person.id}" th:text="${person.toString()}"></option>
  165. </select>
  166. <div th:if="${#fields.hasErrors('deceased')}">
  167. <ul class="text-danger">
  168. <li th:each="err : ${#fields.errors('deceased')}" th:text="${err}"/>
  169. </ul>
  170. </div>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td style="text-align: right;">
  175. <label for="sex">Sex :&nbsp;</label>
  176. </td>
  177. <td style="text-align: left;">
  178. <select id="sex" style="width: 200px;" name="sex" th:field="*{sex}">
  179. <option th:value="${''}" th:text="${''}"></option>
  180. <option th:each="value : ${T(scot.carricksoftware.grants.enums.general.Sex).values()}"
  181. th:value="${value}" th:text="${value.label}"></option>
  182. </select>
  183. <div th:if="${#fields.hasErrors('sex')}">
  184. <ul class="text-danger">
  185. <li th:each="err : ${#fields.errors('sex')}" th:text="${err}"/>
  186. </ul>
  187. </div>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td style="text-align: right">
  192. <label for="occupation">Occupation :&nbsp;</label>
  193. </td>
  194. <td style="text-align: left;">
  195. <div>
  196. <input class="occupation" id="occupation"
  197. th:field="*{occupation}" type="text">
  198. <div th:if="${#fields.hasErrors('occupation')}">
  199. <ul class="text-danger">
  200. <li th:each="err : ${#fields.errors('occupation')}" th:text="${err}"/>
  201. </ul>
  202. </div>
  203. </div>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td style="text-align: right;">
  208. <label for="whenBorn">When Born (dd/mm/yyyy hh:mm) :&nbsp;</label>
  209. </td>
  210. <td style="text-align: left;">
  211. <div>
  212. <input class="whenBorn" id="whenBorn"
  213. th:field="*{whenBorn}" type="text">
  214. <div th:if="${#fields.hasErrors('whenBorn')}">
  215. <ul class="text-danger">
  216. <li th:each="err : ${#fields.errors('whenBorn')}" th:text="${err}"/>
  217. </ul>
  218. </div>
  219. </div>
  220. </td>
  221. </tr>
  222. <tr>
  223. <td style="text-align: right;">
  224. <label for="age">Age :&nbsp;</label>
  225. </td>
  226. <td style="text-align: left;">
  227. <div>
  228. <input class="age" id="age"
  229. th:field="*{age}" type="text">
  230. <div th:if="${#fields.hasErrors('age')}">
  231. <ul class="text-danger">
  232. <li th:each="err : ${#fields.errors('age')}" th:text="${err}"/>
  233. </ul>
  234. </div>
  235. </div>
  236. </td>
  237. </tr>
  238. <tr>
  239. <td style="text-align: right;">
  240. <label for="maritalStatus">Marital Status :&nbsp;</label>
  241. </td>
  242. <td style="text-align: left;">
  243. <div>
  244. <input class="maritalStatus" id="maritalStatus"
  245. th:field="*{maritalStatus}" type="text">
  246. <div th:if="${#fields.hasErrors('maritalStatus')}">
  247. <ul class="text-danger">
  248. <li th:each="err : ${#fields.errors('matitalStatus')}" th:text="${err}"/>
  249. </ul>
  250. </div>
  251. </div>
  252. </td>
  253. </tr>
  254. <tr>
  255. <td style="text-align: right;">
  256. <label for="whenDied">When Died (dd/mm/yyyy hh:mm) :&nbsp;</label>
  257. </td>
  258. <td style="text-align: left;">
  259. <div>
  260. <input class="whenDied" id="whenDied"
  261. th:field="*{whenBorn}" type="text">
  262. <div th:if="${#fields.hasErrors('whenDied')}">
  263. <ul class="text-danger">
  264. <li th:each="err : ${#fields.errors('whenDied')}" th:text="${err}"/>
  265. </ul>
  266. </div>
  267. </div>
  268. </td>
  269. </tr>
  270. <tr>
  271. <td style="text-align: right; background-color: #F542A4;">
  272. <label for="whereDied">Where Died :&nbsp;</label>
  273. </td>
  274. <td style="text-align: left;">
  275. <select id="whereDied" name="whereDied" th:field="*{whereDied}">
  276. <option th:value="${''}" th:text="${''}"></option>
  277. <option th:each="place : ${places}"
  278. th:value="${place.id}" th:text="${place.toString()}"></option>
  279. </select>
  280. <div th:if="${#fields.hasErrors('whereDied')}">
  281. <ul class="text-danger">
  282. <li th:each="err : ${#fields.errors('whereDied')}" th:text="${err}"/>
  283. </ul>
  284. </div>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td style="text-align: right; background-color: #F542A4;">
  289. <label for="untrackedWhereDied">Where Died (untracked) :&nbsp;</label>
  290. </td>
  291. <td style="text-align: left;">
  292. <div>
  293. <input class="untrackedWhereDied" id="untrackedWhereDied"
  294. th:field="*{untrackedWhereDied}" type="text">
  295. <div th:if="${#fields.hasErrors('untrackedWhereDied')}">
  296. <ul class="text-danger">
  297. <li th:each="err : ${#fields.errors('untrackedWhereDied')}" th:text="${err}"/>
  298. </ul>
  299. </div>
  300. </div>
  301. </td>
  302. </tr>
  303. <tr>
  304. <td style="text-align: right; background-color: #5D42F5;">
  305. <label for="usualResidence">Usual Residence :&nbsp;</label>
  306. </td>
  307. <td style="text-align: left;">
  308. <select id="usualResidence" name="usualResidence" th:field="*{usualResidence}">
  309. <option th:value="${''}" th:text="${''}"></option>
  310. <option th:each="place : ${places}"
  311. th:value="${place.id}" th:text="${place.toString()}"></option>
  312. </select>
  313. <div th:if="${#fields.hasErrors('usualResidence')}">
  314. <ul class="text-danger">
  315. <li th:each="err : ${#fields.errors('usualResidence')}" th:text="${err}"/>
  316. </ul>
  317. </div>
  318. </td>
  319. </tr>
  320. <tr>
  321. <td style="text-align: right; background-color: #5D42F5;">
  322. <label for="untrackedUsualResidence">Usual Residence (untracked) :&nbsp;</label>
  323. </td>
  324. <td style="text-align: left;">
  325. <div>
  326. <input class="untrackedUsualResidence" id="untrackedUsualResidence"
  327. th:field="*{untrackedUsualResidence}" type="text">
  328. <div th:if="${#fields.hasErrors('untrackedUsualResidence')}">
  329. <ul class="text-danger">
  330. <li th:each="err : ${#fields.errors('uFF0000FFntrackedUsualResidence')}"
  331. th:text="${err}"/>
  332. </ul>
  333. </div>
  334. </div>
  335. </td>
  336. </tr>
  337. <tr>
  338. <td style="text-align: right;">
  339. <label for="causeOfDeath">Cause of Death :&nbsp;</label>
  340. </td>
  341. <td style="text-align: left;">
  342. <div>
  343. <textarea class="causeOfDeath" id="causeOfDeath" rows="5" cols="60"
  344. th:field="*{causeOfDeath}" type="text"></textarea>
  345. <div th:if="${#fields.hasErrors('causeOfDeath')}">
  346. <ul class="text-danger">
  347. <li th:each="err : ${#fields.errors('causeOfDeath')}" th:text="${err}"/>
  348. </ul>
  349. </div>
  350. </div>
  351. </td>
  352. </tr>
  353. <tr>
  354. <td style="text-align: right; background-color: #F2F542;;">
  355. <label for="spouse">Spouse :&nbsp;</label>
  356. </td>
  357. <td style="text-align: left;">
  358. <select id="spouse" name="spouse" th:field="*{spouse}">
  359. <option th:value="${''}" th:text="${''}"></option>
  360. <option th:each="person : ${people}"
  361. th:value="${person.id}" th:text="${person.toString()}"></option>
  362. </select>
  363. <div th:if="${#fields.hasErrors('spouse')}">
  364. <ul class="text-danger">
  365. <li th:each="err : ${#fields.errors('spouse')}" th:text="${err}"/>
  366. </ul>
  367. </div>
  368. </td>
  369. </tr>
  370. <tr>
  371. <td style="text-align: right; background-color: #F2F542;">
  372. <label for="untrackedSpouse">Spouse (untracked) :&nbsp;</label>
  373. </td>
  374. <td style="text-align: left;">
  375. <div>
  376. <input class="untrackedSpouse" id="untrackedSpouse"
  377. th:field="*{untrackedSpouse}" type="text">
  378. <div th:if="${#fields.hasErrors('untrackedSpouse')}">
  379. <ul class="text-danger">
  380. <li th:each="err : ${#fields.errors('untrackedSpouse')}" th:text="${err}"/>
  381. </ul>
  382. </div>
  383. </div>
  384. </td>
  385. </tr>
  386. <tr>
  387. <td style="text-align: right;">
  388. <label for="spouseOccupation">Spouse Occupation :&nbsp;</label>
  389. </td>
  390. <td style="text-align: left;">
  391. <div>
  392. <input class="spouseOccupation" id="spouseOccupation"
  393. th:field="*{spouseOccupation}" type="text">
  394. <div th:if="${#fields.hasErrors('spouseOccupation')}">
  395. <ul class="text-danger">
  396. <li th:each="err : ${#fields.errors('spouseOccupation')}" th:text="${err}"/>
  397. </ul>
  398. </div>
  399. </div>
  400. </td>
  401. </tr>
  402. <tr>
  403. <td style="text-align: right; background-color: #D6EEEE;">
  404. <label for="father">Father :&nbsp;</label>
  405. </td>
  406. <td style="text-align: left;">
  407. <select id="father" name="father" th:field="*{father}">
  408. <option th:value="${''}" th:text="${''}"></option>
  409. <option th:each="person : ${people}"
  410. th:value="${person.id}" th:text="${person.toString()}"></option>
  411. </select>
  412. <div th:if="${#fields.hasErrors('father')}">
  413. <ul class="text-danger">
  414. <li th:each="err : ${#fields.errors('father')}" th:text="${err}"/>
  415. </ul>
  416. </div>
  417. </td>
  418. </tr>
  419. <tr>
  420. <td style="text-align: right; background-color: #D6EEEE;">
  421. <label for="untrackedFather">Father (untracked) :&nbsp;</label>
  422. </td>
  423. <td style="text-align: left;">
  424. <div>
  425. <input class="untrackedFather" id="untrackedFather"
  426. th:field="*{untrackedFather}" type="text">
  427. <div th:if="${#fields.hasErrors('untrackedFather')}">
  428. <ul class="text-danger">
  429. <li th:each="err : ${#fields.errors('untrackedFather')}" th:text="${err}"/>
  430. </ul>
  431. </div>
  432. </div>
  433. </td>
  434. </tr>
  435. <tr>
  436. <td style="text-align: right;">
  437. <label for="fatherOccupation">Father Occupation :&nbsp;</label>
  438. </td>
  439. <td style="text-align: left;">
  440. <div>
  441. <input class="fatherOccupation" id="fatherOccupation"
  442. th:field="*{fatherOccupation}" type="text">
  443. <div th:if="${#fields.hasErrors('fatherOccupation')}">
  444. <ul class="text-danger">
  445. <li th:each="err : ${#fields.errors('fatherOccupation')}" th:text="${err}"/>
  446. </ul>
  447. </div>
  448. </div>
  449. </td>
  450. </tr>
  451. <tr>
  452. <td style="text-align: right; background-color: #73ff00;">
  453. <label for="mother">Mother :&nbsp;</label>
  454. </td>
  455. <td style="text-align: left;">
  456. <select id="mother" name="mother" th:field="*{mother}">
  457. <option th:value="${''}" th:text="${''}"></option>
  458. <option th:each="person : ${people}"
  459. th:value="${person.id}" th:text="${person.toString()}"></option>
  460. </select>
  461. <div th:if="${#fields.hasErrors('mother')}">
  462. <ul class="text-danger">
  463. <li th:each="err : ${#fields.errors('mother')}" th:text="${err}"/>
  464. </ul>
  465. </div>
  466. </td>
  467. </tr>
  468. <tr>
  469. <td style="text-align: right; background-color: #73ff00;">
  470. <label for="untrackedMother">Mother (untracked) :&nbsp;</label>
  471. </td>
  472. <td style="text-align: left;">
  473. <div>
  474. <input class="untrackedMother" id="untrackedMother"
  475. th:field="*{untrackedMother}" type="text">
  476. <div th:if="${#fields.hasErrors('untrackedMother')}">
  477. <ul class="text-danger">
  478. <li th:each="err : ${#fields.errors('untrackedMother')}" th:text="${err}"/>
  479. </ul>
  480. </div>
  481. </div>
  482. </td>
  483. </tr>
  484. <tr>
  485. <td style="text-align: right;">
  486. <label for="motherOccupation">Mother Occupation :&nbsp;</label>
  487. </td>
  488. <td style="text-align: left;">
  489. <div>
  490. <input class="motherOccupation" id="motherOccupation"
  491. th:field="*{motherOccupation}" type="text">
  492. <div th:if="${#fields.hasErrors('motherOccupation')}">
  493. <ul class="text-danger">
  494. <li th:each="err : ${#fields.errors('motherOccupation')}" th:text="${err}"/>
  495. </ul>
  496. </div>
  497. </div>
  498. </td>
  499. </tr>
  500. <tr>
  501. <td style="text-align: right; background-color: #FFC300;">
  502. <label for="informant">Informant :&nbsp;</label>
  503. </td>
  504. <td style="text-align: left;">
  505. <select id="informant" name="informant" th:field="*{mother}">
  506. <option th:value="${''}" th:text="${''}"></option>
  507. <option th:each="person : ${people}"
  508. th:value="${person.id}" th:text="${person.toString()}"></option>
  509. </select>
  510. <div th:if="${#fields.hasErrors('informant')}">
  511. <ul class="text-danger">
  512. <li th:each="err : ${#fields.errors('informant')}" th:text="${err}"/>
  513. </ul>
  514. </div>
  515. </td>
  516. </tr>
  517. <tr>
  518. <td style="text-align: right; background-color: #FFC300;">
  519. <label for="untrackedInformant">Informant (untracked) :&nbsp;</label>
  520. </td>
  521. <td style="text-align: left;">
  522. <div>
  523. <input class="untrackedInformant" id="untrackedInformant"
  524. th:field="*{untrackedInformant}" type="text">
  525. <div th:if="${#fields.hasErrors('untrackedInformant')}">
  526. <ul class="text-danger">
  527. <li th:each="err : ${#fields.errors('untrackedInformant')}" th:text="${err}"/>
  528. </ul>
  529. </div>
  530. </div>
  531. </td>
  532. </tr>
  533. <tr>
  534. <td style="text-align: right;">
  535. <label for="informantQualification">Informant Qualification :&nbsp;</label>
  536. </td>
  537. <td style="text-align: left;">
  538. <div>
  539. <input class="informantQualification" id="informantQualification"
  540. th:field="*{informantQualification}" type="text">
  541. </div>
  542. </td>
  543. </tr>
  544. <tr>
  545. <td style="text-align: right;">
  546. <label for="whenRegistered">When Registered (dd/mm/yyyy) :&nbsp;</label>
  547. </td>
  548. <td style="text-align: left;">
  549. <div>
  550. <input class="whenRegistered" id="whenRegistered"
  551. th:field="*{whenRegistered}" type="text">
  552. <div th:if="${#fields.hasErrors('whenRegistered')}">
  553. <ul class="text-danger">
  554. <li th:each="err : ${#fields.errors('whenRegistered')}" th:text="${err}"/>
  555. </ul>
  556. </div>
  557. </div>
  558. </td>
  559. </tr>
  560. <tr>
  561. <td style="text-align: right;">
  562. <label for="whereRegistered">Where Registered :&nbsp;</label>
  563. </td>
  564. <td style="text-align: left;">
  565. <div>
  566. <input class="whereRegistered" id="whereRegistered"
  567. th:field="*{whereRegistered}" type="text">
  568. <div th:if="${#fields.hasErrors('whereRegistered')}">
  569. <ul class="text-danger">
  570. <li th:each="err : ${#fields.errors('whereRegistered')}" th:text="${err}"/>
  571. </ul>
  572. </div>
  573. </div>
  574. </td>
  575. </tr>
  576. </table>
  577. <button type="submit" class="btn btn-primary">Commit</button>
  578. <a class="btn btn-secondary" th:href="@{/deathCertificates}" th:text="${'List all'}">List all</a>
  579. <a class="btn btn-success" th:href="@{/static}" th:text="${'Home'}">Home</a>
  580. <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
  581. </form>
  582. </div>
  583. </body>
  584. </html>