main
Last change
on this file since a762b3a was a762b3a, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago |
adoption posts list + pet details page
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[a762b3a] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"
|
---|
| 3 | xmlns:th="http://www.thymeleaf.org"
|
---|
| 4 | xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
|
---|
| 5 | xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
|
---|
| 6 | <head>
|
---|
| 7 | <meta charset="UTF-8">
|
---|
| 8 | <title>Adoption Posts</title>
|
---|
| 9 | </head>
|
---|
| 10 | <body>
|
---|
| 11 | <table>
|
---|
| 12 | <tr>
|
---|
| 13 | <th>Post ID</th>
|
---|
| 14 | <th>Pet Name</th>
|
---|
| 15 | <th>Species</th>
|
---|
| 16 | </tr>
|
---|
| 17 | <tr th:each = "post : ${session.posts}">
|
---|
| 18 | <td th:text = "${post.getId()}"></td>
|
---|
| 19 | <td th:each = "pet : ${session.pets}" th:if="${post.getPetId()==pet.getId()}" th:text = "${pet.getName()}"></td>
|
---|
| 20 | <td th:each = "pet : ${session.pets}" th:if="${post.getPetId()==pet.getId()}" th:text = "${pet.getSpecies()}"></td>
|
---|
| 21 | <td>
|
---|
| 22 | <form th:action="@{'/pet-details-{id}' (id=${post.getId()})}"
|
---|
| 23 | th:method="GET">
|
---|
| 24 | <button type="submit"
|
---|
| 25 | class="btn">
|
---|
| 26 | View Details
|
---|
| 27 | </button>
|
---|
| 28 | </form>
|
---|
| 29 |
|
---|
| 30 | </td>
|
---|
| 31 | </tr>
|
---|
| 32 | </table>
|
---|
| 33 | </body>
|
---|
| 34 | </html> |
---|
Note:
See
TracBrowser
for help on using the repository browser.