{{ (doc._id.generation_time.strftime('%d.%m.%Y')) if doc._id else ''}}
+
+
+ {% for post in doc.get('posts')%}
+ {{render_post(post)}}
+ {% endfor %}
+{%endif%}
+{% if doc.get('type_')=='paint' %}
+{% set statuses = ['Ожидает отправки', 'Возврат художнику'] %}
+
+
+
+ {% if data | selectattr('status', 'in', statuses) | list | length > 0 %}
+
+
Настройки отправки
+
+
Можно менять перед каждой отправкой картины
+
+
+
+
+
+
+
+
+ {% endif %}
+
+
+
+{% for doc in data if doc.status in statuses %}
+{{ render_doc(doc) }}
+{% endfor %}
+{% for doc in data if doc.status not in statuses %}
+{{ render_doc(doc) }}
+{% endfor %}
+
+
+
+{% endif %}
+