chrono/chrono/manager/templates/chrono/manager_shared_custody_agen...

40 lines
1.2 KiB
HTML

{% extends "chrono/manager_agenda_month_view.html" %}
{% load i18n %}
{% block content %}
{% if agenda.is_complete %}
{% for week, slots in slots_by_week.items %}
{% if forloop.first %}
<table class="agenda-table month-view single-desk">
<tbody>
{% endif %}
<tr>
<th></th>
{% for slot in slots %}
<th class="weekday {% if slot.date == today %}today{% endif %}"><span>{{ slot.date|date:"l j" }}</span></th>
{% endfor %}
</tr>
<tr>
<th>{% trans "Week" %} {{ week }}</th>
{% for slot in slots %}
{% if slot.date < agenda.date_start or agenda.date_end and slot.date > agenda.date_end %}
<td></td>
{% else %}
<td class="guardian {% if slot.guardian == agenda.first_guardian %}first-guardian{% else %}second-guardian{% endif %}">{{ slot }}</td>
{% endif %}
{% endfor %}
</tr>
{% if forloop.last %}
</tbody>
</table>
{% endif %}
{% endfor %}
{% else %}
<div class="warningnotice">
<p>{% trans "Configuration is not completed yet." %}</p>
</div>
{% endif %}
{% endblock %}