{% load i18n %}
← {% trans "К списку проектов" %}
{% if ug_message %}
{{ ug_message }}
{% endif %} {% if ug_error %}
{{ ug_error }}
{% endif %}

{{ project.title }}

{{ project.get_status_display }} {% if project.template %} · {{ project.template.name }}{% endif %} {% if project.pharmacy %} · {{ project.pharmacy }}{% endif %} {% if project.start_date %} · {% trans "с" %} {{ project.start_date }}{% endif %} {% if project.due_date %} · {% trans "до" %} {{ project.due_date }}{% endif %}

{% if project.description %}

{{ project.description }}

{% endif %}
{% if can_manage and project.status != 'cancelled' %} {% trans "Редактировать" %} {% endif %} {% if can_manage and project.status == 'draft' %}
{% csrf_token %}
{% endif %}
{% trans "Прогресс" %} {{ done_count }}/{{ total_count }} · {{ pct }}%

{% trans "Шаги" %}

{% for step in project.steps.all %}
{{ step.order|add:1 }}. {{ step.title }}
{{ step.get_status_display }} {% if step.planned_due %} · {% trans "до" %} {{ step.planned_due }}{% endif %}
{% if can_manage and project.status != 'cancelled' and project.status != 'done' %}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if can_manage and project.status != 'cancelled' %} {% if step.items.all %}
{% csrf_token %}
{% endif %} {% endif %}
{% empty %}

{% trans "Шагов пока нет." %}

{% endfor %} {% if can_manage and project.status != 'cancelled' and project.status != 'done' %}
{% endif %}
{{ departments_tree|json_script:"proj-departments-tree" }} {% include "partials/project-steps-builder-assets.html" %}