소스 검색

CensusEntry age and where born added to Census Entry form

Andrew Grant 5 달 전
부모
커밋
58817ff6e2
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      src/main/resources/templates/censusentry/form.html

+ 13 - 0
src/main/resources/templates/censusentry/form.html

@@ -120,6 +120,19 @@ rounded-3 text-center p-4">
                 </div>
             </div>
         </div>
+        <div class="form-group row justify-content-center">
+            <div class="col-md-2">
+                <label for="age">Age</label>
+                <input class="form-control" id="age"
+                       th:field="*{age}" type="text">
+            </div>
+            <div class="col-md-2">
+                <label for="whereBorn">Where Born</label>
+                <input class="form-control" id="whereBorn"
+                       th:field="*{whereBorn}" type="text">
+            </div>
+        </div>
+
         <button type="submit" class="btn btn-primary">Commit</button>
         <a class="btn btn-secondary" th:href="@{/censusEntries}" th:text="${'List all'}">List all</a>
         <a class="btn btn-success" th:href="@{/}" th:text="${'Home'}">Home</a>