Procházet zdrojové kódy

CertificateType added to form

Andrew Grant před 6 měsíci
rodič
revize
4d5d1a1645

+ 20 - 5
src/main/resources/templates/certificates/birthCertificate/form.html

@@ -56,18 +56,18 @@
             </tr>
             <tr>
                 <td style="text-align: right;">
-                    <label for="certificateIssuedAt">Issued From&nbsp;</label>
+                    <label for="certificateSource">Issued From&nbsp;</label>
                 </td>
                 <td style="text-align: left;">
                     <div>
-                        <select id="certificateIssuedAt" name="place" th:field="*{certificateIssuedAt}">
+                        <select id="certificateSource" name="place" th:field="*{certificateSource}">
                             <option th:value="${''}" th:text="${''}"></option>
                             <option th:each="place : ${places}"
                                     th:value="${place.id}" th:text="${place.toString()}"></option>
                         </select>
-                        <div th:if="${#fields.hasErrors('certificateIssuedAt')}">
+                        <div th:if="${#fields.hasErrors('certificateSource')}">
                             <ul class="text-danger">
-                                <li th:each="err : ${#fields.errors('certificateIssuedAt')}" th:text="${err}"/>
+                                <li th:each="err : ${#fields.errors('certificateSource')}" th:text="${err}"/>
                             </ul>
                         </div>
                     </div>
@@ -87,6 +87,21 @@
                     </div>
                 </td>
             </tr>
+            <tr>
+                <td style="text-align: right;">
+                    <label for="certificateType">Certificate Type&nbsp;</label>
+                </td>
+                <td style="text-align: left;">
+                    <input class="form-control" id="certificateType"
+                           th:field="*{certificateType}" type="text">
+                    <div th:if="${#fields.hasErrors('certificateType')}">
+                        <ul class="text-danger">
+                            <li th:each="err : ${#fields.errors('certificateType')}" th:text="${err}"/>
+                        </ul>
+                    </div>
+                </td>
+            </tr>
+
             <tr>
                 <td style="text-align: right;">
                     <label for="newBorn">NewBorn</label>
@@ -109,7 +124,7 @@
 
         <button type="submit" class="btn btn-primary">Commit</button>
         <a class="btn btn-secondary" th:href="@{/birthCertificates}" 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>