{% load i18n %}
← {% trans "Все отчёты" %}

{% trans "Шаблоны оформления" %}

{% trans "Копируйте системный шаблон и правьте HTML/Markdown под требования отдела." %}

{% for tpl in templates %} {% empty %} {% endfor %}
{% trans "Название" %} {% trans "Код" %} {% trans "Статус" %}
{{ tpl.name }}
{% if tpl.description %}
{{ tpl.description|truncatechars:80 }}
{% endif %}
{{ tpl.code }} {% if tpl.is_default %}{% trans "По умолчанию" %}{% endif %} {% if tpl.is_system %}{% trans "Системный" %}{% endif %} {% if not tpl.is_active %}{% trans "Выкл." %}{% endif %} {% if tpl.is_system %}{% trans "Открыть" %}{% else %}{% trans "Править" %}{% endif %}
{% csrf_token %}
{% if not tpl.is_default and tpl.is_active %}
{% csrf_token %}
{% endif %}
{% trans "Шаблонов нет. Выполните: python manage.py seed_report_templates" %}
{% trans "Переменные шаблона" %}: report, company, month, stats, month_title, prepared_date, labels, employees, conclusions. {% trans "Синтаксис — Django templates (теги и переменные)." %}