{% extends "qommon/forms/widget.html" %} {% block widget-content %}
Légende

Disponible

Haute disponibilité

entre 1 et 4h déjà réservées

Peu de disponibilité

entre 5 et 12h déjà réservées

Très peu de disponibilité

entre 13 et 22h déjà réservées

Indisponible

Dates sélectionnées

{% with delai_min=form_option_delai_min|default:7 %} {% with delai_max=form_option_delai_max|default:737 %} {% with today|add_days:delai_min as debut %} {% with today|add_days:delai_max as fin %} {% with debut.year|multiply:"-1"|add:fin.year|add:1 as number_year %}

Disponibilités

{% for y in ''|center:number_year %} {% with debut.year|add:forloop.counter0|stringformat:"i" as year %}

{{year}}

{% if forloop.first and forloop.last %} {% with debut.month|multiply:-1|add:fin.month|add:1 as number_month %} {% for i in ''|center:number_month %} {% with debut.month|add:forloop.counter0|stringformat:"i" as month %}

{{ "01/"|add:month|add:"/"|add:year|date:"F"|title }}

{% if forloop.first and forloop.last %} {% with debut.day|multiply:-1|add:fin.day|add:1 as number_day %} {% for i in ''|center:number_day %} {% with debut.day|add:forloop.counter0|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endwith %} {% elif forloop.first %} {% with debut.day|multiply:-1|add:32 as number_day %} {% for d in ''|center:number_day %} {% with debut.day|add:forloop.counter0|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endwith %} {% elif forloop.last %} {% for d in ''|center:fin.day %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% else %} {% for d in ''|center:31 %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endif %}
{% endwith %} {% endfor %} {% endwith %} {% elif forloop.first %} {% with debut.month|multiply:"-1"|add:13 as number_loop %} {% for i in ''|center:number_loop %} {% with debut.month|add:forloop.counter0|stringformat:"i" as month %}

{{ "01/"|add:month|add:"/"|add:year|date:"F"|title }}

{% if forloop.first %} {% with debut.day|multiply:-1|add:32 as number_day %} {% for d in ''|center:number_day %} {% with debut.day|add:forloop.counter0|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endwith %} {% else %} {% for d in ''|center:31 %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endif %}
{% endwith %} {% endfor %} {% endwith %} {% elif forloop.last %} {% for i in ''|center:fin.month %} {% with forloop.counter|stringformat:"i" as month %}

{{ "01/"|add:month|add:"/"|add:year|date:"F"|title }}

{% if forloop.last %} {% for d in ''|center:fin.day %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% else %} {% for d in ''|center:31 %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %} {% endif %}
{% endwith %} {% endfor %} {% else %} {% for i in ''|center:12 %} {% with forloop.counter|stringformat:"i" as month %}

{{ "01/"|add:month|add:"/"|add:year|date:"F"|title }}

{% for d in ''|center:31 %} {% with forloop.counter|stringformat:"i"|add:"/"|add:month|add:"/"|add:year|date as complete_date %} {% if complete_date %} {% if forloop.first %} {% with complete_date|date|add_days:-1|date:"w" as no_days %} {% for no_day in ''|center:no_days %}
{% endfor %} {% endwith %} {% endif %}

{{complete_date|date:"l"}}
{{complete_date}}

{% endif %} {% endwith %} {% endfor %}
{% endwith %} {%endfor%} {% endif %}
{% endwith %} {% endfor %}
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {{webservice.indisponibiltes_d_une_salle|json_script:'imio-indisponibilite'}} {% endblock %}