feat: add KS-6a Excel/Word export

This commit is contained in:
Арсентьев Александр
2026-09-27 14:32:36 +03:00
parent 9cfb341774
commit 34fb98e69c
9 changed files with 1281 additions and 30 deletions
+12 -6
View File
@@ -43,12 +43,18 @@
{% endif %}
{% if date_from and date_to and not error %}
<div class="mb-2 text-muted">
Период: {{ date_from }} — {{ date_to }}
{% if system_id and system_id != 'all' %}
{% for system in systems %}{% if system_id|string == system.id|string %} · Система: {{ system.name }}{% endif %}{% endfor %}
{% else %} · Все системы{% endif %}
· Строк: {{ total_count }}
<div class="mb-2 d-flex flex-wrap align-items-center gap-2">
<div class="text-muted">
Период: {{ date_from }} — {{ date_to }}
{% if system_id and system_id != 'all' %}
{% for system in systems %}{% if system_id|string == system.id|string %} · Система: {{ system.name }}{% endif %}{% endfor %}
{% else %} · Все системы{% endif %}
· Строк: {{ total_count }}
</div>
<a href="/projects/{{ project.id }}/ks6a/export/excel?date_from={{ date_from }}&amp;date_to={{ date_to }}&amp;system_id={{ system_id or 'all' }}"
class="btn btn-outline-success btn-sm">📊 Excel</a>
<a href="/projects/{{ project.id }}/ks6a/export/word?date_from={{ date_from }}&amp;date_to={{ date_to }}&amp;system_id={{ system_id or 'all' }}"
class="btn btn-outline-primary btn-sm">📄 Word</a>
</div>
{% if rows %}