Sfoglia il codice sorgente

Add a new image now works

Andrew Grant 6 mesi fa
parent
commit
f656d6fc1e

+ 1 - 1
src/main/resources/templates/images/image/form.html

@@ -22,7 +22,7 @@
 <div th:insert="~{fragments/layout::banner}"></div>
 
 <div class="container border border-info rounded-3 text-center p-4">
-    <form th:object="${imageCommand}" th:action="@{/person}" method="post">
+    <form th:object="${imageCommand}" th:action="@{/image}" method="post">
         <div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
             <p>Please Correct The Errors Below</p>
         </div>

+ 1 - 1
src/main/resources/templates/images/image/list.html

@@ -30,7 +30,7 @@
             </thead>
 
             <tr th:each="image : ${images}">
-                <!--/*@thymesVar id="person" type="scot.carricksoftware.grants.domains.people.Person"*/-->
+                <!--/*@thymesVar id="image" type="scot.carricksoftware.grants.domains.images.Image"*/-->
                 <td th:text="${image.id}">123</td>
                 <td></td>
                 <td></td>