52 lines
1.6 KiB
HTML
52 lines
1.6 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 %}
|
|
|
|
<div class="section">
|
|
{% if agenda.date_end %}
|
|
{% blocktrans trimmed with date_start=agenda.date_start date_end=agenda.date_end %}
|
|
This agenda applies from {{ date_start }} to {{ date_end }}.
|
|
{% endblocktrans %}
|
|
{% else %}
|
|
{% blocktrans trimmed with date_start=agenda.date_start %}
|
|
This agenda applies from {{ date_start }}.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|