{% load i18n %}

{% trans "Отчёты" %}

{% trans "Аналитика и выгрузки по отделам" %}

{% if can_manage_templates %} {% trans "Шаблоны оформления" %} {% endif %}
{% if reports_message %}
{{ reports_message }}
{% endif %} {% if reports_error %}
{{ reports_error }}
{% endif %} {% if report_rows or report_documents or can_create_report_document %}
{% if report_rows %} {% for row in report_rows %} {% endfor %} {% endif %} {% for doc in report_documents %} {% empty %} {% endfor %} {% if can_create_report_document %} {% endif %}
{% trans "Название" %} {% trans "Отдел" %} {% trans "Период" %} {% trans "Статус" %}
{{ row.title }}
{{ row.description }}
{{ row.department_label }} {{ row.latest_month|default:"—" }} {% if row.status == 'published' %} {{ row.status_label }} {% else %} {{ row.status_label }} {% endif %} {% trans "Открыть" %}
{% trans "Документы отдела" %}
{% if onlyoffice_ready %} {{ doc.title }} {% else %} {{ doc.title }} {% endif %}
{{ doc.filename }} {% if doc.kind == 'snapshot' %} · {% trans "снимок отчёта" %}{% endif %}
{{ doc.department.name }} {{ doc.updated_at|date:"d.m.Y H:i" }} {% if doc.is_published %} {% trans "Опубликован" %} {% else %} {% trans "Черновик" %} {% endif %} {% if doc.kep_signature %} {% trans "КЕП" %} {% endif %} {% if doc.filename|slice:"-5:" == ".xlsx" %} Excel {% else %} Word {% endif %} {% trans "Скачать" %} {% trans "Подписать КЕП" %} {% if can_create_report_document %} {% if doc.is_published %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% endif %}
{% trans "Пока нет файлов отдела." %}
{% csrf_token %}
{% csrf_token %}
{% trans "Новые файлы — черновики. Опубликуйте, чтобы сотрудники отдела их увидели." %}
{% else %}
{% trans "Нет доступных отчётов для вашей роли. Обратитесь к руководителю отдела или администратору." %}
{% endif %}