Browse Source

Census Entry LIst Edit/Delete fixed

Andrew Grant 7 months ago
parent
commit
ba0d126ba3

+ 1 - 0
src/main/java/scot/carricksoftware/grants/enums/censusentry/CensusEntryRelationship.java

@@ -8,6 +8,7 @@ package scot.carricksoftware.grants.enums.censusentry;
 public enum CensusEntryRelationship {
     @SuppressWarnings("unused") HEAD("Head"),
     @SuppressWarnings("unused") WIFE("Wife"),
+    @SuppressWarnings("unused") DAUGHTER("Daughter"),
     @SuppressWarnings("unused") NIECE("Niece"),
     @SuppressWarnings("unused") COUSIN("Cousin"),
     @SuppressWarnings("unused") BORDER("Border"),

+ 2 - 2
src/main/resources/templates/censusEntry/list.html

@@ -43,10 +43,10 @@
 
                 <td><span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'censusEntry/' + ${entry.id} + '/delete'"
+                           th:href="@{/censusEntry/{id}/delete(id=${entry.id})}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'censusEntry/' + ${entry.id} + '/edit'"
+                       th:href="@{/censusEntry/{id}/edit(id=${entry.id})}"
                        th:text="Edit"></a>
                     </span></td>
             </tr>