source: Prototype Application/Paw5/src/main/resources/templates/create-post.html@ a762b3a

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

canBeFostered param default false when unchecked

  • Property mode set to 100644
File size: 3.1 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>Create a post</title>
9</head>
10<body>
11 <h1>Create post</h1>
12<form th:action="@{/submit-post}" method="post">
13
14 <div>
15 <label for="pet">Selet pet:</label>
16 <select id="pet">
17 </select>
18 </div>
19
20 <div>
21 <label for="newpet">Add new pet:</label>
22 <input id="newpet" name="newpet" placeholder="newpet" type="checkbox">
23 </div>
24
25 <div>
26 <label for="name">Name:</label>
27 <input type="text"
28 id="name"
29 name="name"
30 class="form-control"
31 placeholder="Enter name">
32 </div>
33
34 <div>
35 <label for="gender">Gender:</label>
36 <select id="gender"
37 name="gender"
38 class="form-control">
39 <option value = "MALE">male</option>
40 <option value = "FEMALE">female</option>
41 </select>
42 </div>
43
44 <div>
45 <label for="ageGroup">Age Group:</label>
46 <select id="ageGroup"
47 name="ageGroup"
48 class="form-control">
49 <option value = "YOUNG">young</option>
50 <option value = "ADULT">adult</option>
51 <option value = "ELDER">elder</option>
52 </select>
53 </div>
54
55 <div>
56 <label for="size">Size:</label>
57 <select id="size"
58 name="size"
59 class="form-control">
60 <option value = "XSMALL">extra small</option>
61 <option value = "SMALL">small</option>
62 <option value = "MEDIUM">medium</option>
63 <option value = "LARGE">large</option>
64 <option value = "XLARGE">extra large</option>
65 </select>
66 </div>
67
68 <div>
69 <label for="species">Species:</label>
70 <select id="species"
71 name="species"
72 class="form-control">
73 <option value = "CAT">cat</option>
74 <option value = "DOG">dog</option>
75 <option value = "BIRD">bird</option>
76 </select>
77 </div>
78
79 <div>
80 <label for="breed">Breed:</label>
81 <input type="text"
82 id="breed"
83 name="breed"
84 class="form-control"
85 placeholder="Enter breed" >
86 </div>
87
88 <div>
89 <label for="imageUrl">Image URL:</label>
90 <input type="text"
91 id="imageUrl"
92 name="imageUrl"
93 class="form-control"
94 placeholder="Enter image URL">
95 <!-- <label for="upload">Image:</label>
96 <input id="upload" type="file" accept="image/*">
97 <input type="submit">-->
98 </div>
99
100 <div>
101 <label for="canBeFostered">Can be fostered:</label>
102 <input type="checkbox"
103 id="canBeFostered"
104 name="canBeFostered"
105 class="form-control"
106 value=false>
107 </div>
108
109 <button id="submit" type="submit">Submit</button>
110
111</form>
112</body>
113</html>
Note: See TracBrowser for help on using the repository browser.