|
|
@@ -22,15 +22,26 @@
|
|
|
<div th:insert="~{fragments/layout::banner}"></div>
|
|
|
|
|
|
<div class="container border border-info rounded-3 text-center p-4">
|
|
|
+ <h3>Divorce Certificate Details</h3>
|
|
|
<form th:object="${divorceCertificateCommand}" th:action="@{/divorceCertificate}" method="post">
|
|
|
<div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
|
|
|
<p>Please Correct The Errors Below</p>
|
|
|
</div>
|
|
|
- <div class="form-group row justify-content-center">
|
|
|
-
|
|
|
- <div class="col-xs-4" style="margin-right:20px;">
|
|
|
- <label for="firstParty">First Party</label>
|
|
|
- <div>
|
|
|
+ <table style="width:100%;">
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: right;">
|
|
|
+ <label for="id"><span style="color: rgb(255,0,0);">*</span>Database Id : </label>
|
|
|
+ </td>
|
|
|
+ <td style="text-align: left;">
|
|
|
+ <input class="form-control" id="id"
|
|
|
+ th:field="*{id}" type="text" readonly>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: right;">
|
|
|
+ <label for="firstParty">First Party : </label>
|
|
|
+ </td>
|
|
|
+ <td style="text-align: left;">
|
|
|
<select id="firstParty" style="width: 300px;" name="firstParty" th:field="*{firstParty}">
|
|
|
<option th:value="${''}" th:text="${''}"></option>
|
|
|
<option th:each="person : ${people}"
|
|
|
@@ -38,15 +49,16 @@
|
|
|
</select>
|
|
|
<div th:if="${#fields.hasErrors('firstParty')}">
|
|
|
<ul class="text-danger">
|
|
|
- <li th:each="err : ${#fields.errors('firstParty')}" th:text="${err}"/>
|
|
|
+ <li th:each="err : ${#fields.errors('bride')}" th:text="${err}"/>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="col-xs-4" style="margin-right:20px;">
|
|
|
- <label for="secondParty">Second Party</label>
|
|
|
- <div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: right;">
|
|
|
+ <label for="secondParty">Second Party : </label>
|
|
|
+ </td>
|
|
|
+ <td style="text-align: left;">
|
|
|
<select id="secondParty" style="width: 300px;" name="secondParty" th:field="*{secondParty}">
|
|
|
<option th:value="${''}" th:text="${''}"></option>
|
|
|
<option th:each="person : ${people}"
|
|
|
@@ -57,18 +69,12 @@
|
|
|
<li th:each="err : ${#fields.errors('secondParty')}" th:text="${err}"/>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group row justify-content-center">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
|
|
|
- <div class="col-xs-2">
|
|
|
- <label for="id">Database Id<span style="color: rgb(255,0,0);">*</span></label>
|
|
|
- <input class="form-control" id="id"
|
|
|
- th:field="*{id}" type="text" readonly>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
+ </table>
|
|
|
<button type="submit" class="btn btn-primary">Commit</button>
|
|
|
<a class="btn btn-secondary" th:href="@{/divorceCertificates}" th:text="${'List all'}">List all</a>
|
|
|
<a class="btn btn-success" th:href="@{/static}" th:text="${'Home'}">Home</a>
|