{% t "Accounted" %}
{{ totals.accounted_minutes|hm }}
{% t "Worked" %} {{ totals.worked_minutes|hm }}
{% t "Justified" %} {{ totals.justified_minutes|hm }}
{% if totals.extra_days %}
{% t "Extra days" %} {{ totals.extra_days }} ({{ totals.extra_minutes|hm }})
{% endif %}
{% t "Planned" %}
{{ totals.planned_minutes|hm }}
{% t "Issues" %}
{{ totals.issue_days }}
{% if balances %}{% include "attendance/partials/balances.html" %}{% else %}
{% t "Balance tracking is disabled." %}
{% endif %}
{# Desktop / tablet: month grid with drag selection #}
{% for w in weekday_names %}
{{ w|tr }}
{% endfor %}
{% for week in weeks %}{% for d in week %} {% if d %} {% with iso=d.day|date:"Y-m-d" %}
{{ d.day.day }} {% if d.holiday %}{{ d.holiday }}{% endif %}
{% if d.has_issue %}{% endif %} {% if d.checks %}
{% for c in d.checks|slice:":4" %}{{ c.time|date:"H:i" }}{% endfor %}{% if d.checks|length > 4 %}+{{ d.checks|length|add:"-4" }}{% endif %}
{% endif %} {% if d.leaves %}
{% for lv in d.leaves %}{% with c=classes|get_item:lv.class_id %}{% endwith %}{% endfor %}
{% endif %} {% if d.is_extra_day %}
{{ d.extra_minutes|hm }}
{% endif %} {% if d.planned_minutes or d.worked_minutes %}
{{ d.worked_minutes|hm }}{% if d.planned_minutes %} / {{ d.planned_minutes|hm }}{% endif %}
{% if d.planned_minutes %}
{% for key, minutes in d.bar_segments %}{% endfor %}
{% endif %} {% endif %}
{% endwith %} {% else %}
{% endif %} {% endfor %}{% endfor %}
{% t "Worked" %} {% t "Vacation" %} {% t "Permits" %} {% t "Other justified absences" %} {% t "Business trip" %} 1{% t "Today" %} 1{% t "Issue" %}
{# Phones: day list #}
{% for d in days %}
{{ d.day.day }}
{{ d.day|date:"D"|tr }}
{% if d.holiday %}
{{ d.holiday }}
{% endif %} {% if d.checks %}
{% for c in d.checks %}{{ c.time|date:"H:i" }}{% endfor %}
{% endif %} {% for lv in d.leaves %}{% with c=classes|get_item:lv.class_id %}{{ c.name|default:lv.class_id }}{% endwith %}{% endfor %}
{% if d.planned_minutes or d.worked_minutes %}
{{ d.worked_minutes|hm }}
{% endif %} {% if d.is_extra_day %}
{{ d.extra_minutes|hm }}
{% endif %} {% if d.has_issue %}{% endif %}
{% endfor %}