{% extends 'base.html.twig' %} {% block title %}{{companyName}} | {% trans %}Accueil{% endtrans %}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{% if type is not null%} {% if type.enable ==true %}
Arrivée Le
Départ Le
Adultes
Enfants
Rechercher
{% endif %} {% else %}
{% for buildingType in buildingTypes %} {% if buildingType.enable ==true %}
Arrivée Le
Départ Le
Adultes
Enfants
Rechercher
{% endif %} {%endfor %} {% endif %}
Accueil {{ town.country.countryName }} {{ town.townName }} {% if type is not null%} {{ type.type }} {% else %} All {% endif %}
Prix max par nuité


Notiriété:
Promotions

Conditions de réservations

Les équipements

{% if type is not null%}
{{ town.townName }}: {{ result|length }} {{ type.type}} trouvé(e)s
{% else %}
{{ town.townName }}: {{ result|length }} offre(s) trouvé(e)s
{% endif %}
{% set buildingLenght=result|length %} {% if buildingLenght !=1 %} {% set list=1 %} {% for k in range(0, buildingLenght, showItem) %}
{% for building in result|slice(k,k+showItem) %}
    {% if building.picture1 is not empty %}
  • {% endif %} {% if building.picture2 is not empty %}
  • {% endif %} {% if building.picture3 is not empty %}
  • {% endif %}
{{ building.designation }}

{% for i in 0.. building.options.notiriety %} {%endfor %}

Situé à {{ building.address.location }}

{{ building.description }}

{% if building.options is not null %}
{% if building.options.miniBar == true %} {% endif %} {% if building.options.restaurant == true %} {% endif %} {% if building.options.parking == true %} {% endif %} {% if building.options.pool == true %} {% endif %} {% if building.options.conferenceRoom == true %} {% endif %}
{% endif %}
{%endfor %}
{% set list=list+1 %} {%endfor %} {% else %} {% for building in result %}
{% set list=1 %}
    {% if building.picture1 is not empty %}
  • {% endif %} {% if building.picture2 is not empty %}
  • {% endif %} {% if building.picture3 is not empty %}
  • {% endif %}
{{ building.designation }}

{% for i in 0.. building.options.notiriety %} {%endfor %}

Situé à {{ building.address.location }}

{{ building.description }}

{% if building.options is not null %}
{% if building.options.miniBar == true %} {% endif %} {% if building.options.restaurant == true %} {% endif %} {% if building.options.parking == true %} {% endif %} {% if building.options.pool == true %} {% endif %} {% if building.options.conferenceRoom == true %} {% endif %}
{% endif %}
{%endfor %} {% endif %}
{% set lastPage = result|length/showItem + buildingLenght%showItem %} {% set currentPage = 1 %} {% set showAlwaysFirstAndLast = true %} {% set currentFilters = {} %} {% if lastPage > 1 %} {# the number of first and last pages to be displayed #} {% set extremePagesLimit = 5 %} {# the number of pages that are displayed around the active page #} {% set nearbyPagesLimit = 5 %} {% set j = currentPage - nearbyPagesLimit %}
    {% if currentPage > 1 %}
  • {% for i in range(1, extremePagesLimit) %} {% if ( i < currentPage - nearbyPagesLimit ) %} {% endif %} {% endfor %} {% if extremePagesLimit + 1 < currentPage - nearbyPagesLimit %} ... {% endif %} {% for i in range(currentPage-nearbyPagesLimit, currentPage-1) %} {% if ( i > 0 ) %} {% endif %} {% endfor %} {% elseif showAlwaysFirstAndLast %}
  • {% endif %} ... {% if currentPage < lastPage %} {% for i in range(currentPage+1, currentPage + nearbyPagesLimit) %} {% if ( i <= lastPage ) %} ... {% endif %} {% endfor %} {% if (lastPage - extremePagesLimit) > (currentPage + nearbyPagesLimit) %} {% for j in currentPage + nearbyPagesLimit+1 .. lastPage - extremePagesLimit %} ... {% endfor %} ... {% endif %} ... {% for i in range(lastPage - extremePagesLimit+1, lastPage)%} {% if ( i > currentPage + nearbyPagesLimit ) %} ... {% endif %} {% endfor %} {% elseif showAlwaysFirstAndLast %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}