Amenities
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user