[a762b3a] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"
|
---|
[5f53114] | 3 | xmlns:th="http://thymeleaf.org"
|
---|
[a762b3a] | 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>
|
---|
[3c7bf5b] | 9 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
| 10 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
---|
| 11 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
---|
| 12 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
---|
| 13 |
|
---|
[a762b3a] | 14 | </head>
|
---|
| 15 | <body>
|
---|
[3c7bf5b] | 16 | <header>
|
---|
| 17 | <nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
---|
| 18 | <div class="container">
|
---|
| 19 | <a class="navbar-brand" href="/home">Paw 5</a>
|
---|
| 20 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
|
---|
| 21 | aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
---|
| 22 | <span class="navbar-toggler-icon"></span>
|
---|
| 23 | </button>
|
---|
| 24 |
|
---|
| 25 | <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
|
---|
| 26 | <ul class="navbar-nav m-auto">
|
---|
| 27 | <li class="nav-item m-auto">
|
---|
| 28 | <a class="nav-link active" href="/home/aboutUs">About us</a>
|
---|
| 29 | </li>
|
---|
| 30 | <li class="nav-item m-auto">
|
---|
| 31 | <a class="nav-link active" href="/login">Login</a>
|
---|
| 32 | </li>
|
---|
| 33 | <li class="nav-item m-auto">
|
---|
| 34 | <a class="nav-link active" href="/register">Register</a>
|
---|
| 35 | </li>
|
---|
| 36 | </ul>
|
---|
| 37 | </div>
|
---|
| 38 | </div>
|
---|
| 39 | </nav>
|
---|
| 40 | </header>
|
---|
[a762b3a] | 41 | <table>
|
---|
| 42 | <tr>
|
---|
| 43 | <th>Post ID</th>
|
---|
| 44 | <th>Pet Name</th>
|
---|
| 45 | <th>Species</th>
|
---|
| 46 | </tr>
|
---|
[5f53114] | 47 | <tr th:each = "post : ${posts}">
|
---|
[a762b3a] | 48 | <td th:text = "${post.getId()}"></td>
|
---|
[e76c5a6] | 49 | <td th:text = "${post.getPet().getName()}"></td>
|
---|
| 50 | <td th:text = "${post.getPet().getSpecies()}"></td>
|
---|
[a762b3a] | 51 | <td>
|
---|
| 52 | <form th:action="@{'/pet-details-{id}' (id=${post.getId()})}"
|
---|
| 53 | th:method="GET">
|
---|
| 54 | <button type="submit"
|
---|
| 55 | class="btn">
|
---|
| 56 | View Details
|
---|
| 57 | </button>
|
---|
| 58 | </form>
|
---|
| 59 |
|
---|
| 60 | </td>
|
---|
| 61 | </tr>
|
---|
| 62 | </table>
|
---|
| 63 | </body>
|
---|
| 64 | </html> |
---|