{% 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 %} | {{ desk_info.desk.label }}{% if agenda.kind == 'virtual' %} ({{ desk_info.desk.agenda.label }}){% endif %} | {% endfor %}
---|---|
{{ period|date:"TIME_FORMAT" }} | {% for desk_info in desk_infos %}
{% 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 %}
{% endfor %}
{% trans "Currently being booked..." %} {% else %} {% endif %} |
{% endfor %}
{% trans "No opening hours this day." %}