Skip to main content

Amenity

Gives you access to all amenities and their attributes.

Example

{% for amenity in amenities %}
{% if amenity.available %}
<li class="available"><i class="fa-li fa fa-check-circle-o"></i> {{ amenity.name }}</li>
{% else %}
<li class="unavailable"><i class="fa-li fa fa-circle-o"></i> {{ amenity.name }}</li>
{% endif %}
{% endfor %}

Available attributes:

NameTypeDescription
availableBooleanif amenity is available or not
detailsStringtranslated amenity's details
idStringamenity uniq identifier
nameStringtranslated amenity's name
selectedBooleanif amenity is selected or not