style: Increase text size for labels and headings in sidebar_inquiry and sidebar_post
This commit is contained in:
1 parent
befc8bdc9e
commit
c960072b3e
2 files changed
+46
-46
No files matched your search
@@ -20,8 +20,8 @@
|
|||||||
<!-- Static Info: Title, Address Snippet, Posted Ago -->
|
<!-- Static Info: Title, Address Snippet, Posted Ago -->
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<h2 class="text-xl font-semibold text-gray-800 mb-1 font-heading">Cozy coworking space in the heart of the south</h2>
|
<h2 class="text-xl font-semibold text-gray-800 mb-1 font-heading">Cozy coworking space in the heart of the south</h2>
|
||||||
<p class="text-xs text-gray-600 mb-1">Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite</p>
|
<p class="text-sm text-gray-600 mb-1">Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite</p>
|
||||||
<p class="text-xs text-gray-500">Posted 5 hrs ago</p>
|
<p class="text-sm text-gray-500">Posted 5 hrs ago</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Action Buttons -->
|
<!-- Action Buttons -->
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
<a href="https://www.google.com/maps/dir/?api=1&destination=Incub8+space,+Centennial+Road,+Brgy.+Batong+Dalig,+Kawit,+Cavite" target="_blank" rel="noopener noreferrer" class="w-full bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 font-heading">
|
<a href="https://www.google.com/maps/dir/?api=1&destination=Incub8+space,+Centennial+Road,+Brgy.+Batong+Dalig,+Kawit,+Cavite" target="_blank" rel="noopener noreferrer" class="w-full bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 font-heading">
|
||||||
Get Directions
|
Get Directions
|
||||||
</a>
|
</a>
|
||||||
<p class="text-xs mt-2 text-gray-600 font-thin text-center">
|
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
||||||
Opens Google Maps in a new tab.
|
Opens Google Maps in a new tab.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,32 +128,32 @@
|
|||||||
<div id="inquire-tab-content" class="inquiry-tab-content hidden space-y-3">
|
<div id="inquire-tab-content" class="inquiry-tab-content hidden space-y-3">
|
||||||
<form class="space-y-3">
|
<form class="space-y-3">
|
||||||
<div>
|
<div>
|
||||||
<label for="inquiry-full-name" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Full Name</label>
|
<label for="inquiry-full-name" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Full Name</label>
|
||||||
<input type="text" id="inquiry-full-name" placeholder="Full Name" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
<input type="text" id="inquiry-full-name" placeholder="Full Name" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||||
<p class="text-xs text-red-500 mt-1 hidden">Invalid Name</p>
|
<p class="text-sm text-red-500 mt-1 hidden">Invalid Name</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-3">
|
<div class="flex gap-3">
|
||||||
<div class="w-1/2">
|
<div class="w-1/2">
|
||||||
<label for="inquiry-contact-num" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Contact #</label>
|
<label for="inquiry-contact-num" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact #</label>
|
||||||
<input type="tel" id="inquiry-contact-num" placeholder="Contact #" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
<input type="tel" id="inquiry-contact-num" placeholder="Contact #" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||||
<p class="text-xs text-red-500 mt-1 hidden">Invalid Phone Number</p>
|
<p class="text-sm text-red-500 mt-1 hidden">Invalid Phone Number</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2">
|
<div class="w-1/2">
|
||||||
<label for="inquiry-email" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
<label for="inquiry-email" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
||||||
<input type="email" id="inquiry-email" placeholder="Email Address" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
<input type="email" id="inquiry-email" placeholder="Email Address" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||||
<p class="text-xs text-red-500 mt-1 hidden">Invalid Email Address</p>
|
<p class="text-sm text-red-500 mt-1 hidden">Invalid Email Address</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="inquiry-message" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Optional Message</label>
|
<label for="inquiry-message" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Optional Message</label>
|
||||||
<textarea id="inquiry-message" rows="3" placeholder="Optional Message" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
|
<textarea id="inquiry-message" rows="3" placeholder="Optional Message" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
|
||||||
<p class="text-xs text-red-500 mt-1 hidden">Invalid Message</p>
|
<p class="text-sm text-red-500 mt-1 hidden">Invalid Message</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pt-2">
|
<div class="pt-2">
|
||||||
<button type="submit" class="w-full bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 font-heading">
|
<button type="submit" class="w-full bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 font-heading">
|
||||||
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2 hidden" alt="Loading"> Send Inquiry
|
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2 hidden" alt="Loading"> Send Inquiry
|
||||||
</button>
|
</button>
|
||||||
<p class="text-xs mt-2 text-gray-600 font-thin text-center">
|
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
||||||
By submitting, you agree to the <b>Terms and Conditions</b>
|
By submitting, you agree to the <b>Terms and Conditions</b>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
|
|
||||||
// Placeholder for Mapbox initialization if the location tab is active
|
// Placeholder for Mapbox initialization if the location tab is active
|
||||||
if (tabId === 'directions') {
|
if (tabId === 'directions') {
|
||||||
// e.g., if (typeof mapboxgl !== 'undefined' && !mapInstanceInquiry) {
|
// e.g., if (typeof mapboxgl !== 'undefined' && !mapInstanceInquiry) {
|
||||||
// mapInstanceInquiry = new mapboxgl.Map({ container: 'mapbox-map-container-inquiry', style: 'YOUR_MAPBOX_STYLE_URL', center: [lng, lat], zoom: 15 });
|
// mapInstanceInquiry = new mapboxgl.Map({ container: 'mapbox-map-container-inquiry', style: 'YOUR_MAPBOX_STYLE_URL', center: [lng, lat], zoom: 15 });
|
||||||
// new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapInstanceInquiry);
|
// new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapInstanceInquiry);
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -22,19 +22,19 @@
|
|||||||
<div class="flex justify-between mb-6">
|
<div class="flex justify-between mb-6">
|
||||||
<div id="step-indicator-1-modal" class="step-indicator-modal active-step-modal text-center flex-1">
|
<div id="step-indicator-1-modal" class="step-indicator-modal active-step-modal text-center flex-1">
|
||||||
<div class="w-8 h-8 mx-auto rounded-full bg-indigo-700 text-white flex items-center justify-center text-xs">1</div>
|
<div class="w-8 h-8 mx-auto rounded-full bg-indigo-700 text-white flex items-center justify-center text-xs">1</div>
|
||||||
<p class="text-xs mt-1 font-heading">Description</p>
|
<p class="text-sm mt-1 font-heading">Description</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="step-indicator-2-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
<div id="step-indicator-2-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">2</div>
|
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">2</div>
|
||||||
<p class="text-xs mt-1 font-heading">Location</p>
|
<p class="text-sm mt-1 font-heading">Location</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="step-indicator-3-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
<div id="step-indicator-3-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">3</div>
|
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">3</div>
|
||||||
<p class="text-xs mt-1 font-heading">Price & Availability</p>
|
<p class="text-sm mt-1 font-heading">Price & Availability</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="step-indicator-4-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
<div id="step-indicator-4-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">4</div>
|
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">4</div>
|
||||||
<p class="text-xs mt-1 font-heading">Contact</p>
|
<p class="text-sm mt-1 font-heading">Contact</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -44,20 +44,20 @@
|
|||||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 1: Listing Description</h2>
|
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 1: Listing Description</h2>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label for="photo-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Listing Photo</label>
|
<label for="photo-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Listing Photo</label>
|
||||||
<input type="file" id="photo-modal" name="photo" class="w-full text-xs text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-xs file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
|
<input type="file" id="photo-modal" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
|
||||||
<p class="text-xs text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
|
<p class="text-sm text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="title-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Title</label>
|
<label for="title-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Title</label>
|
||||||
<input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="description-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Description</label>
|
<label for="description-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Description</label>
|
||||||
<textarea id="description-modal" name="description" rows="3" placeholder="Describe your space..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
|
<textarea id="description-modal" name="description" rows="3" placeholder="Describe your space..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="space-type-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Space Type</label>
|
<label for="space-type-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Space Type</label>
|
||||||
<select id="space-type-modal" name="space-type" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
<select id="space-type-modal" name="space-type" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||||
<option value="">Select a space type</option>
|
<option value="">Select a space type</option>
|
||||||
<option value="coworking">Coworking</option>
|
<option value="coworking">Coworking</option>
|
||||||
@@ -80,24 +80,24 @@
|
|||||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 2: Location</h2>
|
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 2: Location</h2>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<label for="location-search-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Select Location</label>
|
<label for="location-search-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Select Location</label>
|
||||||
<input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" autocomplete="off">
|
<input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" autocomplete="off">
|
||||||
<div id="location-dropdown-modal" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-48 overflow-y-auto py-1">
|
<div id="location-dropdown-modal" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-48 overflow-y-auto py-1">
|
||||||
<a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a>
|
<a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a>
|
||||||
<a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Makati, Philippines</a>
|
<a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Makati, Philippines</a>
|
||||||
<a href="#" data-value="Quezon City, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Quezon City, Philippines</a>
|
<a href="#" data-value="Quezon City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Quezon City, Philippines</a>
|
||||||
<a href="#" data-value="Cebu City, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Cebu City, Philippines</a>
|
<a href="#" data-value="Cebu City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Cebu City, Philippines</a>
|
||||||
<a href="#" data-value="Taguig, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Taguig, Philippines</a>
|
<a href="#" data-value="Taguig, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Taguig, Philippines</a>
|
||||||
<p class="no-results-modal px-4 py-2 text-xs text-gray-500 hidden">No locations found.</p>
|
<p class="no-results-modal px-4 py-2 text-sm text-gray-500 hidden">No locations found.</p>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="selected-location-modal" name="selected-location">
|
<input type="hidden" id="selected-location-modal" name="selected-location">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="address-line-1-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Address Line 1</label>
|
<label for="address-line-1-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Address Line 1</label>
|
||||||
<input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="address-line-2-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Address Line 2 (Optional)</label>
|
<label for="address-line-2-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Address Line 2 (Optional)</label>
|
||||||
<input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 3: Price & Availability</h2>
|
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 3: Price & Availability</h2>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label for="price-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Price (PHP per day)</label>
|
<label for="price-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Price (PHP per day)</label>
|
||||||
<div class="relative mt-1 rounded-sm shadow-sm">
|
<div class="relative mt-1 rounded-sm shadow-sm">
|
||||||
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
||||||
<span class="text-gray-500 text-sm">₱</span>
|
<span class="text-gray-500 text-sm">₱</span>
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
<div class="flex flex-wrap border-b border-gray-200">
|
<div class="flex flex-wrap border-b border-gray-200">
|
||||||
{% for day_label_modal in days_list_modal %}
|
{% for day_label_modal in days_list_modal %}
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="day-tab-button-modal -mb-px py-1.5 px-3 border-b-2 border-transparent text-xs font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none font-heading"
|
class="day-tab-button-modal -mb-px py-1.5 px-3 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none font-heading"
|
||||||
data-day-target="{{ day_label_modal | downcase }}">
|
data-day-target="{{ day_label_modal | downcase }}">
|
||||||
{{ day_label_modal | slice: 0, 3 }} <!-- Abbreviated day name -->
|
{{ day_label_modal | slice: 0, 3 }} <!-- Abbreviated day name -->
|
||||||
</button>
|
</button>
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<div id="availability-content-{{ day_label_modal | downcase }}-modal" class="day-availability-content-modal hidden">
|
<div id="availability-content-{{ day_label_modal | downcase }}-modal" class="day-availability-content-modal hidden">
|
||||||
<div class="bg-gray-50 p-3 rounded-md shadow-sm space-y-3">
|
<div class="bg-gray-50 p-3 rounded-md shadow-sm space-y-3">
|
||||||
<label for="available-{{ day_label_modal | downcase }}-modal" class="flex items-center justify-between w-full cursor-pointer font-heading">
|
<label for="available-{{ day_label_modal | downcase }}-modal" class="flex items-center justify-between w-full cursor-pointer font-heading">
|
||||||
<span class="text-xs font-medium text-gray-900">Available on {{ day_label_modal }}</span>
|
<span class="text-sm font-medium text-gray-900">Available on {{ day_label_modal }}</span>
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
id="available-{{ day_label_modal | downcase }}-modal"
|
id="available-{{ day_label_modal | downcase }}-modal"
|
||||||
name="available_days[]"
|
name="available_days[]"
|
||||||
@@ -177,11 +177,11 @@
|
|||||||
|
|
||||||
<div id="time-selection-{{ day_label_modal | downcase }}-modal" class="day-specific-time-inputs-modal mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-2 hidden">
|
<div id="time-selection-{{ day_label_modal | downcase }}-modal" class="day-specific-time-inputs-modal mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-2 hidden">
|
||||||
<div>
|
<div>
|
||||||
<label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5 font-heading">Open</label>
|
<label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-sm font-medium text-gray-700 mb-0.5 font-heading">Open</label>
|
||||||
<input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
<input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5 font-heading">Close</label>
|
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-sm font-medium text-gray-700 mb-0.5 font-heading">Close</label>
|
||||||
<input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
<input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -208,25 +208,25 @@
|
|||||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 4: Contact Information</h2>
|
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 4: Contact Information</h2>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label for="space-name-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Coworking Space Name</label>
|
<label for="space-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Coworking Space Name</label>
|
||||||
<input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||||
<div>
|
<div>
|
||||||
<label for="contact-first-name-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Contact Person - First Name</label>
|
<label for="contact-first-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Person - First Name</label>
|
||||||
<input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="contact-last-name-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Contact Person - Last Name</label>
|
<label for="contact-last-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Person - Last Name</label>
|
||||||
<input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="contact-number-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Contact Number</label>
|
<label for="contact-number-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Number</label>
|
||||||
<input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="contact-email-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
<label for="contact-email-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
||||||
<input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
<input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -327,7 +327,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
const locationInputModal = document.getElementById('location-search-modal');
|
const locationInputModal = document.getElementById('location-search-modal');
|
||||||
const locationDropdownModal = document.getElementById('location-dropdown-modal');
|
const locationDropdownModal = document.getElementById('location-dropdown-modal');
|
||||||
const selectedLocationInputModal = document.getElementById('selected-location-modal');
|
const selectedLocationInputModal = document.getElementById('selected-location-modal');
|
||||||
|
|
||||||
if (locationInputModal && locationDropdownModal) {
|
if (locationInputModal && locationDropdownModal) {
|
||||||
const noResultsPModal = locationDropdownModal.querySelector('.no-results-modal');
|
const noResultsPModal = locationDropdownModal.querySelector('.no-results-modal');
|
||||||
const allLocationItemsModal = Array.from(locationDropdownModal.querySelectorAll('a.location-item-modal'));
|
const allLocationItemsModal = Array.from(locationDropdownModal.querySelectorAll('a.location-item-modal'));
|
||||||
@@ -359,7 +359,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
locationDropdownModal.classList.add('hidden');
|
locationDropdownModal.classList.add('hidden');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
locationInputModal.addEventListener('focus', () => {
|
locationInputModal.addEventListener('focus', () => {
|
||||||
if(locationInputModal.value || allLocationItemsModal.some(item => item.style.display !== 'none')) {
|
if(locationInputModal.value || allLocationItemsModal.some(item => item.style.display !== 'none')) {
|
||||||
locationDropdownModal.classList.remove('hidden');
|
locationDropdownModal.classList.remove('hidden');
|
||||||
@@ -428,12 +428,12 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
const checkbox = content.querySelector('.day-specific-availability-toggle-modal');
|
const checkbox = content.querySelector('.day-specific-availability-toggle-modal');
|
||||||
if (checkbox && checkbox.checked) {
|
if (checkbox && checkbox.checked) {
|
||||||
initiallySelectedDayModal = checkbox.dataset.day;
|
initiallySelectedDayModal = checkbox.dataset.day;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setActiveDayTabModal(initiallySelectedDayModal);
|
setActiveDayTabModal(initiallySelectedDayModal);
|
||||||
}
|
}
|
||||||
|
|
||||||
modalFormElement.addEventListener('submit', function(event) {
|
modalFormElement.addEventListener('submit', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const titleInput = document.getElementById('title-modal');
|
const titleInput = document.getElementById('title-modal');
|
||||||
|
|||||||
Reference in new issue
Block a user