Changeset 04e4f54
- Timestamp:
- 02/13/23 14:18:54 (21 months ago)
- Branches:
- main
- Children:
- 3f5e485, 9ee306b
- Parents:
- c37c953
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java
rc37c953 r04e4f54 44 44 @RequestParam(required = false) String breed, 45 45 @RequestParam(required = false) String imageUrl, 46 @RequestParam boolean canBeFostered) {46 @RequestParam(required = false) boolean canBeFostered) { 47 47 48 48 Pet pet = new Pet(imageUrl, AgeGroup.valueOf(ageGroup), Size.valueOf(size), breed, name, Species.valueOf(species), Gender.valueOf(gender), canBeFostered, null, 1); -
Prototype Application/Paw5/src/main/resources/templates/create-post.html
rc37c953 r04e4f54 28 28 id="name" 29 29 name="name" 30 class="form-control" 30 31 placeholder="Enter name"> 31 32 </div> … … 34 35 <label for="gender">Gender:</label> 35 36 <select id="gender" 36 name="gender"> 37 name="gender" 38 class="form-control"> 37 39 <option value = "MALE">male</option> 38 40 <option value = "FEMALE">female</option> … … 43 45 <label for="ageGroup">Age Group:</label> 44 46 <select id="ageGroup" 45 name="ageGroup"> 47 name="ageGroup" 48 class="form-control"> 46 49 <option value = "YOUNG">young</option> 47 50 <option value = "ADULT">adult</option> … … 53 56 <label for="size">Size:</label> 54 57 <select id="size" 55 name="size"> 58 name="size" 59 class="form-control"> 56 60 <option value = "XSMALL">extra small</option> 57 61 <option value = "SMALL">small</option> … … 65 69 <label for="species">Species:</label> 66 70 <select id="species" 67 name="species"> 71 name="species" 72 class="form-control"> 68 73 <option value = "CAT">cat</option> 69 74 <option value = "DOG">dog</option> … … 77 82 id="breed" 78 83 name="breed" 84 class="form-control" 79 85 placeholder="Enter breed" > 80 86 </div> … … 85 91 id="imageUrl" 86 92 name="imageUrl" 93 class="form-control" 87 94 placeholder="Enter image URL"> 88 95 <!-- <label for="upload">Image:</label> … … 95 102 <input type="checkbox" 96 103 id="canBeFostered" 97 name="canBeFostered"> 104 name="canBeFostered" 105 class="form-control" 106 value=false> 98 107 </div> 99 108
Note:
See TracChangeset
for help on using the changeset viewer.