[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>Title</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>
|
---|
[a762b3a] | 13 | </head>
|
---|
| 14 | <body>
|
---|
[3c7bf5b] | 15 | <header>
|
---|
| 16 | <nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
---|
| 17 | <div class="container">
|
---|
| 18 | <a class="navbar-brand" href="/home">Paw 5</a>
|
---|
| 19 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
|
---|
| 20 | aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
---|
| 21 | <span class="navbar-toggler-icon"></span>
|
---|
| 22 | </button>
|
---|
| 23 |
|
---|
| 24 | <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
|
---|
| 25 | <ul class="navbar-nav m-auto">
|
---|
| 26 | <li class="nav-item m-auto">
|
---|
| 27 | <a class="nav-link active" href="/home/aboutUs">About us</a>
|
---|
| 28 | </li>
|
---|
| 29 | <li class="nav-item m-auto">
|
---|
| 30 | <a class="nav-link active" href="/login">Login</a>
|
---|
| 31 | </li>
|
---|
| 32 | <li class="nav-item m-auto">
|
---|
| 33 | <a class="nav-link active" href="/register">Register</a>
|
---|
| 34 | </li>
|
---|
| 35 | </ul>
|
---|
| 36 | </div>
|
---|
| 37 | </div>
|
---|
| 38 | </nav>
|
---|
| 39 | </header>
|
---|
[a762b3a] | 40 | <table>
|
---|
| 41 | <tr>
|
---|
| 42 | <th>Post ID</th>
|
---|
[5f53114] | 43 | <td th:text = "${post.getId()}"></td>
|
---|
[a762b3a] | 44 | <tr>
|
---|
| 45 | <th>Pet Name</th>
|
---|
[5f53114] | 46 | <td th:text = "${pet.getName()}"></td>
|
---|
[a762b3a] | 47 | </tr>
|
---|
| 48 | <tr>
|
---|
| 49 | <th>Species</th>
|
---|
[5f53114] | 50 | <td th:text = "${pet.getSpecies()}"></td>
|
---|
[a762b3a] | 51 | </tr>
|
---|
| 52 | <tr>
|
---|
| 53 | <th>Breed</th>
|
---|
[5f53114] | 54 | <td th:text = "${pet.getBreed()}"></td>
|
---|
[a762b3a] | 55 | </tr>
|
---|
| 56 | <tr>
|
---|
| 57 | <th>Gender</th>
|
---|
[5f53114] | 58 | <td th:text = "${pet.getGender()}"></td>
|
---|
[a762b3a] | 59 | </tr>
|
---|
| 60 | <tr>
|
---|
| 61 | <th>Age Group</th>
|
---|
[5f53114] | 62 | <td th:text = "${pet.getAgeGroup}"></td>
|
---|
[a762b3a] | 63 | </tr>
|
---|
| 64 | <tr>
|
---|
| 65 | <th>Size</th>
|
---|
[5f53114] | 66 | <td th:text = "${pet.getSize()}"></td>
|
---|
[a762b3a] | 67 | </tr>
|
---|
| 68 | </table>
|
---|
[cadbec3] | 69 | <form method="POST"
|
---|
[e76c5a6] | 70 | th:action="@{'/submit-adoption-{id}' (id=${pet.getId()})}"
|
---|
[264d675] | 71 | th:if="${pet.getAdoption()==null}">
|
---|
[5f53114] | 72 | <button id="submit"
|
---|
| 73 | type="submit"
|
---|
| 74 | class="btn">Adopt</button>
|
---|
[9a180fd] | 75 | </form>
|
---|
[a762b3a] | 76 |
|
---|
| 77 | </body>
|
---|
| 78 | </html> |
---|