+
- {% if report_rows %}
+ {% if reports_message %}
+
{% else %}
@@ -62,80 +135,4 @@
{% endif %}
- {% if reports_message %}
-
{% trans "Отчёты" %}
{% trans "Аналитика и выгрузки по отделам" %}
@@ -12,48 +12,121 @@ {% endif %}{{ reports_message }}
+ {% endif %}
+ {% if reports_error %}
+ {{ reports_error }}
+ {% endif %}
+
+ {% if report_rows or report_documents or can_create_report_document %}
| {% trans "Отчёт" %} | -{% trans "Отдел" %} | -{% trans "Период" %} | -{% trans "Статус" %} | -+ | {% trans "Название" %} | +{% trans "Отдел" %} | +{% trans "Период" %} | +{% trans "Статус" %} | +|
|---|---|---|---|---|---|---|---|---|---|
| + |
{{ row.title }}
- {{ row.description }}
+ {{ row.description }}
|
- {{ row.department_label }} | -{{ row.latest_month|default:"—" }} | -+ | {{ row.department_label }} | +{{ row.latest_month|default:"—" }} | +{% if row.status == 'published' %} {{ row.status_label }} - {% elif row.status == 'draft' %} - {{ row.status_label }} {% else %} {{ row.status_label }} {% endif %} | -+ | - {% trans "Открыть" %} - + style="font-size:0.75rem; color:var(--color-primary); text-decoration:none;">{% 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.filename|slice:"-5:" == ".xlsx" %} + Excel + {% else %} + Word + {% endif %} + | ++ {% trans "Скачать" %} + {% if can_create_report_document %} + + {% endif %} + | +|||||
| + {% trans "Пока нет файлов отдела." %} + | +|||||||||
| + + | +|||||||||
{{ reports_message }}
- {% endif %}
- {% if reports_error %}
- {{ reports_error }}
- {% endif %}
-
-
-
-
-
- {% else %}
-
-
-
- {% if report_documents %}
-
-
- {% if can_create_report_document %}
-
- {% endif %}
- {% trans "Документы отдела" %}
- - {% trans "Дополнительные файлы и сохранённые отчёты. Правка — в OnlyOffice." %} -
-| {% trans "Документ" %} | -{% trans "Отдел" %} | -{% trans "Обновлён" %} | -- |
|---|---|---|---|
|
- {{ doc.title }}
-
- {% if doc.kind == 'snapshot' %}{% trans "Снимок отчёта" %}{% else %}{% trans "Документ" %}{% endif %}
- · {{ doc.filename }}
-
- |
- {{ doc.department.name }} | -{{ doc.updated_at|date:"d.m.Y H:i" }} | -- {% if onlyoffice_ready %} - {% trans "Открыть" %} - {% endif %} - {% trans "Скачать" %} - {% if can_create_report_document %} - - {% endif %} - | -
- {% trans "Пока нет дополнительных документов." %}
- {% if can_create_report_document %}{% trans "Создайте Word или Excel — файл откроется в OnlyOffice." %}{% endif %}
-
- {% endif %}
-