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>Title</title>
|
---|
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 | </head>
|
---|
14 | <body>
|
---|
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>
|
---|
40 | <table>
|
---|
41 | <tr>
|
---|
42 | <th>Post ID</th>
|
---|
43 | <td th:text = "${session.post.getId()}"></td>
|
---|
44 | <tr>
|
---|
45 | <th>Pet Name</th>
|
---|
46 | <td th:text = "${session.pet.getName()}"></td>
|
---|
47 | </tr>
|
---|
48 | <tr>
|
---|
49 | <th>Species</th>
|
---|
50 | <td th:text = "${session.pet.getSpecies()}"></td>
|
---|
51 | </tr>
|
---|
52 | <tr>
|
---|
53 | <th>Breed</th>
|
---|
54 | <td th:text = "${session.pet.getBreed()}"></td>
|
---|
55 | </tr>
|
---|
56 | <tr>
|
---|
57 | <th>Gender</th>
|
---|
58 | <td th:text = "${session.pet.getGender()}"></td>
|
---|
59 | </tr>
|
---|
60 | <tr>
|
---|
61 | <th>Age Group</th>
|
---|
62 | <td th:text = "${session.pet.getAgeGroup}"></td>
|
---|
63 | </tr>
|
---|
64 | <tr>
|
---|
65 | <th>Size</th>
|
---|
66 | <td th:text = "${session.pet.getSize()}"></td>
|
---|
67 | </tr>
|
---|
68 | </table>
|
---|
69 | <form method="POST"
|
---|
70 | th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}"
|
---|
71 | th:if="${session.pet.getAdoptionId()==null}">
|
---|
72 | <button id="submit" type="submit">Adopt</button>
|
---|
73 | </form>
|
---|
74 |
|
---|
75 | </body>
|
---|
76 | </html> |
---|