{% extends "base.html" %} {% from "icons.html" import icon %} {% block title %}{{ section.title }}{% endblock %} {% block content %}
{{ icon(section.icon, 34) }}

{{ section.title }}

{{ section.desc }}

{% if not section.ready %}
Раздел ещё в разработке.
{% else %}
{% set first_unit = units[0].code if units else '' %} {% for it in section['items'] %} {{ icon(it.icon, 26) }} {{ it.title }} {{ it.desc }} {% if it.icon == 'calendar' %} {{ total.shifts }} смен в графиках за {{ period_label }} {% elif it.icon == 'clock' %} {{ total.hours }} ч в табелях, {{ total.people }} сотрудников {% else %} {% if total.discrepancies %}{{ total.discrepancies }} расхождений{% else %}расхождений нет{% endif %}, {{ total.not_submitted }} табелей не сдано {% endif %} {% endfor %}

Состояние месяца по депо

{% if not units %}

Нет доступных подразделений.

{% else %} {% for u in units %} {% endfor %}
Депо Статус табеля Сотрудников Смен Дней Часов Расхождений
{{ u.name }} {% if u.status == 'none' %} Не открыт {% else %} {{ STATUS_RU.get(u.status, u.status) }} {% endif %} {{ u.people or '—' }} {{ u.planned_shifts or '—' }} {{ u.filled_days or '—' }} {{ u.hours | round(1) if u.hours else '—' }} {{ u.discrepancies or '' }}
{% endif %}
{% endif %} {% endblock %}