Amenities

This commit is contained in:
2025-01-21 23:44:54 +08:00
parent 95822c0bfb
commit 37ae72ceef
4 changed files with 44 additions and 3 deletions
+15
View File
@@ -29,6 +29,21 @@
{% endfor %}
</select>
</div>
<div class="mb-3">
<label class="form-label">Amenities</label>
<div class="row">
{% for amenity in amenities_list %}
<div class="col-md-6">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="amenities" value="{{ amenity.id }}" id="amenity_{{ amenity.id }}">
<label class="form-check-label" for="amenity_{{ amenity.id }}">
{{ amenity.amenity }}
</label>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="row">
<div class="col-md-6">
<label for="latitude" class="form-label">Latitude</label>
+9
View File
@@ -16,6 +16,15 @@
<p><strong>Bathrooms:</strong> {{ listing.bathrooms }}</p>
<p><strong>Beds:</strong> {{ listing.beds }}</p>
{% if amenities %}
<h4>Additional Amenities:</h4>
<ul>
{% for amenity in amenities %}
<li>{{ amenity.amenity }}</li>
{% endfor %}
</ul>
{% endif %}
<a href="/booking/{{ listing.id }}" class="btn btn-primary mt-3">Book This Listing</a>
</div>
{% endblock %}