{% extends "header.html" %} {% block content %}

Find your hotel

{{ form.csrf_token() }}
{% if search %} {{ form.destination(class="form-control", value=search.destination) }} {% else %} {{ form.destination(class="form-control") }} {% endif %}
{% if search %} {{ form.checkin(class="form-control tcal", id="datepickerIn", value=search.checkin) }} {% else %} {{ form.checkin(class="form-control tcal", id="datepickerIn") }} {% endif %}
{% if search %} {{ form.checkout(class="form-control tcal", id="datepickerOut", value=search.checkout) }} {% else %} {{ form.checkout(class="form-control tcal", id="datepickerOut") }} {% endif %}

{% if seacrh and search.is_bathroom %} {{ form.is_bathroom(checked=search.is_bathroom) }} Bathroom
{{ form.is_tv(checked=search.is_tv) }} TV
{{ form.is_wifi(checked=search.is_wifi) }} Wi-Fi
{{ form.is_bathhub(checked=search.is_bathhub) }} Bathtub
{{ form.is_airconditioniring(checked=search.is_aircond) }} Air-conditioner {% else %} {{ form.is_bathroom() }} Bathroom
{{ form.is_tv() }} TV
{{ form.is_wifi() }} Wi-Fi
{{ form.is_bathhub() }} Bathtub
{{ form.is_airconditioniring }} Air-conditioner {% endif %}
{% if search %} {{ form.sleeps(type="number", min="1", value=search.sleeps, class="form-control") }} {% else %} {{ form.sleeps(type="number", min="1", value="1", class="form-control") }} {% endif %}

min {% if search %} {{ form.price_from(class="form-control", type="number", min="0", value=search.price_from) }} {% else %} {{ form.price_from(class="form-control", type="number", min="0", value="0") }} {% endif %}
max {% if search %} {{ form.price_to(class="form-control", type="number", min="0", value=search.price_to) }} {% else %} {{ form.price_to(class="form-control", type="number", min="0", value="0") }} {% endif %}

{% if search %} {{ form.quantity(class="form-control", type="number", min="1", value=search.quantity) }} {% else %} {{ form.quantity(class="form-control", type="number", min="1", value="1") }} {% endif %}
{% endblock content %}