{% load i18n calendar %} {% if calendar_days.has_other_pages %}

{% if calendar_days.has_previous %} {% else %} {% trans "previous" %} {% endif %} {{ calendar_days.number }} / {{ calendar_days.paginator.num_pages }} {% if calendar_days.has_next %} {% else %} {% trans "next" %} {% endif %}

{% endif %} {% if calendar_days %}
{% csrf_token %} {% for day in calendar_days %} {% endfor %} {% for slot in calendar_slots %} {% for day in calendar_days %} {% get_day_slot calendar day=day slot=slot as value %} {% if not value.exist %} {% elif value.available %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{day|date:"SHORT_DATE_FORMAT"}}
{{slot|date:"TIME_FORMAT"}}
{% endif %}