Get session user and add property

This commit is contained in:
Brad Traversy
2024-07-10 14:57:23 -04:00
parent 5417ba807d
commit c8d47bd4d4
6 changed files with 527 additions and 37 deletions
+18 -28
View File
@@ -225,23 +225,13 @@
Add Property
</h2>
<!-- Alerts -->
<div class="bg-green-200 font-semibold p-4 my-5">
This is a success message alert
</div>
<div class="bg-red-200 font-semibold p-4 my-5">
This is an error message alert
</div>
<div class="mb-4">
<label
for="property_type"
class="block text-gray-700 font-bold mb-2"
<label for="type" class="block text-gray-700 font-bold mb-2"
>Property Type</label
>
<select
id="property_type"
name="property_type"
id="type"
name="type"
class="border rounded w-full py-2 px-3"
required
>
@@ -368,7 +358,7 @@
id="amenity_wifi"
name="amenities"
value="Wifi"
className="mr-2"
class="mr-2"
/>
<label for="amenity_wifi">Wifi</label>
</div>
@@ -378,7 +368,7 @@
id="amenity_kitchen"
name="amenities"
value="Full kitchen"
className="mr-2"
class="mr-2"
/>
<label for="amenity_kitchen">Full kitchen</label>
</div>
@@ -388,7 +378,7 @@
id="amenity_washer_dryer"
name="amenities"
value="Washer & Dryer"
className="mr-2"
class="mr-2"
/>
<label for="amenity_washer_dryer">Washer & Dryer</label>
</div>
@@ -398,7 +388,7 @@
id="amenity_free_parking"
name="amenities"
value="Free Parking"
className="mr-2"
class="mr-2"
/>
<label for="amenity_free_parking">Free Parking</label>
</div>
@@ -408,7 +398,7 @@
id="amenity_pool"
name="amenities"
value="Swimming Pool"
className="mr-2"
class="mr-2"
/>
<label for="amenity_pool">Swimming Pool</label>
</div>
@@ -418,7 +408,7 @@
id="amenity_hot_tub"
name="amenities"
value="Hot Tub"
className="mr-2"
class="mr-2"
/>
<label for="amenity_hot_tub">Hot Tub</label>
</div>
@@ -428,7 +418,7 @@
id="amenity_24_7_security"
name="amenities"
value="24/7 Security"
className="mr-2"
class="mr-2"
/>
<label for="amenity_24_7_security">24/7 Security</label>
</div>
@@ -438,7 +428,7 @@
id="amenity_wheelchair_accessible"
name="amenities"
value="Wheelchair Accessible"
className="mr-2"
class="mr-2"
/>
<label for="amenity_wheelchair_accessible"
>Wheelchair Accessible</label
@@ -450,7 +440,7 @@
id="amenity_elevator_access"
name="amenities"
value="Elevator Access"
className="mr-2"
class="mr-2"
/>
<label for="amenity_elevator_access">Elevator Access</label>
</div>
@@ -460,7 +450,7 @@
id="amenity_dishwasher"
name="amenities"
value="Dishwasher"
className="mr-2"
class="mr-2"
/>
<label for="amenity_dishwasher">Dishwasher</label>
</div>
@@ -470,7 +460,7 @@
id="amenity_gym_fitness_center"
name="amenities"
value="Gym/Fitness Center"
className="mr-2"
class="mr-2"
/>
<label for="amenity_gym_fitness_center"
>Gym/Fitness Center</label
@@ -482,7 +472,7 @@
id="amenity_air_conditioning"
name="amenities"
value="Air Conditioning"
className="mr-2"
class="mr-2"
/>
<label for="amenity_air_conditioning">Air Conditioning</label>
</div>
@@ -492,7 +482,7 @@
id="amenity_balcony_patio"
name="amenities"
value="Balcony/Patio"
className="mr-2"
class="mr-2"
/>
<label for="amenity_balcony_patio">Balcony/Patio</label>
</div>
@@ -502,7 +492,7 @@
id="amenity_smart_tv"
name="amenities"
value="Smart TV"
className="mr-2"
class="mr-2"
/>
<label for="amenity_smart_tv">Smart TV</label>
</div>
@@ -512,7 +502,7 @@
id="amenity_coffee_maker"
name="amenities"
value="Coffee Maker"
className="mr-2"
class="mr-2"
/>
<label for="amenity_coffee_maker">Coffee Maker</label>
</div>
+6 -6
View File
@@ -442,15 +442,15 @@
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-bold mb-6">Contact Property Manager</h3>
<form>
<div className='mb-4'>
<div class='mb-4'>
<label
className='block text-gray-700 text-sm font-bold mb-2'
class='block text-gray-700 text-sm font-bold mb-2'
htmlFor='name'
>
Name:
</label>
<input
className='shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'
class='shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'
id='name'
type='text'
placeholder='Enter your name'
@@ -472,15 +472,15 @@
required
/>
</div>
<div className='mb-4'>
<div class='mb-4'>
<label
className='block text-gray-700 text-sm font-bold mb-2'
class='block text-gray-700 text-sm font-bold mb-2'
htmlFor='phone'
>
Phone:
</label>
<input
className='shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'
class='shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'
id='phone'
type='text'
placeholder='Enter your phone number'