58 lines
2.0 KiB
HTML
58 lines
2.0 KiB
HTML
{% extends "chrono/manager_agenda_month_view.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="pk-table-wrapper">
|
|
<table class="partial-booking partial-booking-month">
|
|
<colgroup>
|
|
<col class="name" />
|
|
{% for day in days %}
|
|
{% if day|date:"w" == "0" or day|date:"w" == "6" %}
|
|
<col class="we" />
|
|
{% else %}
|
|
<col />
|
|
{% endif %}
|
|
{% endfor %}
|
|
</colgroup>
|
|
|
|
<thead>
|
|
<tr class="partial-booking-month--day-list">
|
|
<td></td>
|
|
{% for day in days %}
|
|
<th scope="col" class="partial-booking-month--day {% if view.date.date == day.date %}today{% endif %}">
|
|
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.pk year=day.date|date:"Y" month=day.date|date:"m" day=day.date|date:"d" %}">
|
|
<time datetime="{{ day|date:"Y-m-d" }}">{{ day|date:"d" }}</time>
|
|
</a>
|
|
</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="partial-booking-month--registrant-items">
|
|
{% for booking_info in user_booking_info %}
|
|
<tr class="partial-booking-month--registrant">
|
|
<th class="registrant--name" scope="row">{{ booking_info.user_name }}</th>
|
|
{% for booking in booking_info.bookings %}
|
|
<td class="registrant--day-cell">
|
|
{% if booking %}
|
|
<span class="booking {{ booking.check_css_class }}">
|
|
{% if booking.check_css_class == 'present' %}
|
|
{% trans "Present" %}
|
|
{% elif booking.check_css_class == 'absent' %}
|
|
{% trans "Absent" %}
|
|
{% else %}
|
|
{% trans "Not checked" %}
|
|
{% endif %}
|
|
</span>
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|