{% with iso=d.day|date:"Y-m-d" %}

{{ d.day|date:"l"|slice:":3"|tr }} {{ d.day|date:"d/m/Y" }}

{{ target.name }} {% if d.holiday %} · {{ d.holiday }}{% endif %} {% if d.planned_minutes %} · {% t "Planned" %} {{ d.planned_minutes|hm }}{% endif %}
{% include "attendance/partials/readonly_note.html" %}
{% if error %}
{{ error }}
{% endif %} {% if message %}
{{ message }}
{% endif %} {% include "attendance/partials/calendar_notice.html" %} {% if d.issues %}
{% for i in d.issues %}{{ i.value|tr }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}
{% t "Worked" %} {{ d.worked_minutes|hm }}
{% t "Justified" %} {{ d.justified_minutes|hm }}
{% if d.is_extra_day %}
{% t "Extra day" %} {{ d.extra_minutes|hm }}
{% endif %}
{% if bar %} {% endif %}
{% t "Day" %}
{% for e in timeline %} {% if e.check %}{% with c=e.check %}
{{ c.time|date:"H:i" }} {% if c.kind == 0 %}{% t "Check-in" %}{% else %}{% t "Check-out" %}{% endif %} {% if settings.highlight_virtual_checks and c.virtual %}{% t "Virtual" %}{% endif %} {% if can_edit %}
{% endif %}
{% endwith %}{% else %}{% with lv=e.leave c=classes|get_item:e.leave.class_id %}
{{ lv.begin|date:"H:i" }}–{{ lv.end|date:"H:i" }} {{ c.name|default:lv.class_id }} {% if lv.reason and lv.reason != c.name %}{{ lv.reason }}{% endif %} {% if can_edit %}
{% endif %}
{% endwith %}{% endif %} {% empty %}
{% t "No checks" %}
{% endfor %}
{% if can_edit %}
{% t "Add check" %}
{% t "Add leave" %}
{# `worked` Leaves (business trips) are never full-day: start and duration are always explicit #}
{% endif %}
{% endwith %}