source: Prototype Application/Paw5/src/main/resources/templates/pet-details.html@ 9a180fd

main
Last change on this file since 9a180fd was 9a180fd, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago

adopt a pet button + save adoption to db

  • Property mode set to 100644
File size: 1.2 KB
Line 
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</head>
10<body>
11<table>
12 <tr>
13 <th>Post ID</th>
14 <td th:text = "${session.post.getId()}"></td>
15 <tr>
16 <th>Pet Name</th>
17 <td th:text = "${session.pet.getName()}"></td>
18 </tr>
19 <tr>
20 <th>Species</th>
21 <td th:text = "${session.pet.getSpecies()}"></td>
22 </tr>
23 <tr>
24 <th>Breed</th>
25 <td th:text = "${session.pet.getBreed()}"></td>
26 </tr>
27 <tr>
28 <th>Gender</th>
29 <td th:text = "${session.pet.getGender()}"></td>
30 </tr>
31 <tr>
32 <th>Age Group</th>
33 <td th:text = "${session.pet.getAgeGroup}"></td>
34 </tr>
35 <tr>
36 <th>Size</th>
37 <td th:text = "${session.pet.getSize()}"></td>
38 </tr>
39</table>
40<form method="POST" th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}" th:disabled="${session.pet.getAdoptionId()==null}">
41 <button id="submit" type="submit">Adopt</button>
42</form>
43
44</body>
45</html>
Note: See TracBrowser for help on using the repository browser.