+ {% if doc.get('exhibition')%}
+
+
+
+ {{doc.type}}
+
+
+
{{doc.get('exhibition').title }}
+
Место проведения: {{ doc.get('exhibition').get('place') }}
+
+ С {{ ( doc.get('exhibition').datetime_start.strftime('%d.%m.%Y')) if
+ doc.get('exhibition').datetime_start
+ else ''}}
+ По {{ ( doc.get('exhibition').date_finish.strftime('%d.%m.%Y')) if
+ doc.get('exhibition').date_finish else
+ ''}}
+
+ {{render_links(doc)}}
+
Картин выбрано: 0
+
+ {% set user_contact = doc.get('user') %}
+ {{ render_user_contacts(user_contact) }}
+
{{ (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 %}
+