Преглед на файлове

Divorce certificate form and list

Andrew Grant преди 3 месеца
родител
ревизия
e3182f3cfc
променени са 1 файла, в които са добавени 53 реда и са изтрити 5 реда
  1. 53 5
      src/main/resources/templates/certificates/divorceCertificate/form.html

+ 53 - 5
src/main/resources/templates/certificates/divorceCertificate/form.html

@@ -54,7 +54,7 @@
                     </div>
                 </td>
             </tr>
-            <tr>
+            <tr style="border-bottom: 5px solid #ccc;">
                 <td style="text-align: right;">
                     <label for="secondParty">Second Party : </label>
                 </td>
@@ -71,13 +71,61 @@
                     </div>
                 </td>
             </tr>
-
-
-
+            <tr>
+                <td style="text-align: right;">
+                    <label for="firstPartyDate">First Party Signed (dd/mm/yyyy) :&nbsp;</label>
+                </td>
+                <td style="text-align: left;">
+                    <div>
+                        <input class="firstPartyDate" id="firstPartyDate"
+                               th:field="*{firstPartyDate}" type="text">
+                        <div th:if="${#fields.hasErrors('firstPartyDate')}">
+                            <ul class="text-danger">
+                                <li th:each="err : ${#fields.errors('firstPartyDate')}" th:text="${err}"/>
+                            </ul>
+                        </div>
+                    </div>
+                </td>
+            </tr>
+            <tr>
+                <td style="text-align: right;">
+                    <label for="secondPartyDate">Second Party Signed (dd/mm/yyyy) :&nbsp;</label>
+                </td>
+                <td style="text-align: left;">
+                    <div>
+                        <input class="secondPartyDate" id="secondPartyDate"
+                               th:field="*{secondPartyDate}" type="text">
+                        <div th:if="${#fields.hasErrors('secondPartyDate')}">
+                            <ul class="text-danger">
+                                <li th:each="err : ${#fields.errors('secondPartyDate')}" th:text="${err}"/>
+                            </ul>
+                        </div>
+                    </div>
+                </td>
+            </tr>
+            <tr>
+                <td style="text-align: right;">
+                    <label for="registeredDate">Registered Date (dd/mm/yyyy) :&nbsp;</label>
+                </td>
+                <td style="text-align: left;">
+                    <div>
+                        <input class="registeredDate" id="registeredDate"
+                               th:field="*{registeredDate}" type="text">
+                        <div th:if="${#fields.hasErrors('registeredDate')}">
+                            <ul class="text-danger">
+                                <li th:each="err : ${#fields.errors('registeredDate')}" th:text="${err}"/>
+                            </ul>
+                        </div>
+                    </div>
+                </td>
+            </tr>
+            <tr>
+                <td>&nbsp;</td>
+            </tr>
         </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>
+        <a class="btn btn-success" th:href="@{/}" th:text="${'Home'}">Home</a>
         <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
     </form>
 </div>