{% extends "chrono/manager_agenda_day_view.html" %} {% load i18n %} {% block agenda-extra-actions %} {% if allow_booking %} {% trans 'Add booking' %} {% endif %} {% endblock %} {% block content %} {% if booking_colors %} {% include "chrono/booking_color_legend.html" with colors=booking_colors %} {% endif %} {% for period, desk_infos in view.get_timetable_infos %} {% if forloop.first %} {% for desk_info in desk_infos %} {% endfor %} {% if view.date.date == today %} {% endif %} {% endif %} {% for desk_info in desk_infos %} {% endfor %} {% if forloop.last %}
{{ desk_info.desk.label }}{% if agenda.kind == 'virtual' %} ({{ desk_info.desk.agenda.label }}){% endif %}
{{ period|date:"TIME_FORMAT" }} {% if forloop.parentloop.first %} {# opening hours on the first row #} {% for slot in desk_info.opening_hours %}
{% for slot in slot.slots %} {% endfor %}
{% endfor %} {% for slot in desk_info.exceptions %}
{% if slot.label %}{{slot.label}}{% endif %}
{% endfor %} {% endif %} {% for booking in desk_info.bookings %}
{% if booking.lease %}

{% trans "Currently being booked..." %}

{% else %}

{{ booking.get_time_label }} {{ booking.get_user_block }}

{% endif %}
{% endfor %}
{% endif %} {% empty %}

{% trans "No opening hours this day." %}

{% endfor %} {% endblock %}