Changeset ac19a0c for frontend/src/Components/Forms
- Timestamp:
- 01/13/24 23:19:50 (10 months ago)
- Branches:
- master
- Children:
- e85a562
- Parents:
- e9b4ba9
- Location:
- frontend/src/Components/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Forms/AddHotelForm.js
re9b4ba9 rac19a0c 119 119 return prevState + 1; 120 120 }) 121 if(!edit) 122 props.closeModal() 121 123 }} 122 124 > -
frontend/src/Components/Forms/AddRestaurantForm.js
re9b4ba9 rac19a0c 85 85 return prevState + 1; 86 86 }) 87 props.closeModal() 87 88 }} 88 89 > -
frontend/src/Components/Forms/AddRoomForm.js
re9b4ba9 rac19a0c 13 13 hotelRoomDescription: "", 14 14 hotelRoomName: "", 15 num Beds: "",15 numOfBeds: "", 16 16 price: "", 17 17 kitchenAvailable: false, … … 58 58 type="number" 59 59 placeholder="Внесете го бројот на кревети" 60 value={formData.num Beds}61 name="num Beds"60 value={formData.numOfBeds} 61 name="numOfBeds" 62 62 onChange={onFormChange} 63 63 /> … … 117 117 style={{ backgroundColor: "#159895" }} 118 118 size="md" 119 onClick={() => { 120 console.log(formData); 119 onClick={(e) => { 120 e.preventDefault(); 121 props.refresh((prev) => { 122 return ++prev; 123 }) 121 124 createHotelRoom(formData); 125 props.closeModal(); 122 126 }} 123 127 > -
frontend/src/Components/Forms/AddTransportForm.js
re9b4ba9 rac19a0c 11 11 transportName: "", 12 12 carBrand: "", 13 carType: false,13 carType: "", 14 14 carManufacturedYear: 1900, 15 15 noPassengers: 0, … … 107 107 createTransport(formData, edit); 108 108 props.refresh((prev) => { 109 return prev + 1;109 return ++prev; 110 110 }) 111 if(!edit) 112 props.closeModal() 111 113 }} 112 114 > -
frontend/src/Components/Forms/EditRoomForm.js
re9b4ba9 rac19a0c 28 28 } = useGet(`/hotel/rooms/${props.room.hotelRoomId}/available`) 29 29 30 console.log(`/hotel/rooms/${props.room.hotelRoomId}/available`) 31 30 32 !isLoading && console.log(data) 31 33 … … 42 44 <tr> 43 45 <th>#</th> 44 <th>Достапно од</th> 45 <th>Достапно до</th> 46 <th>Број на соби</th> 46 <th>Oд</th> 47 <th>До</th> 48 <th>Време на тргнување</th> 49 <th>Време на пристигнување</th> 50 <th>Цена</th> 47 51 </tr> 48 52 </thead>
Note:
See TracChangeset
for help on using the changeset viewer.