{% extends "layout_plan.html" %} {% load filters %} {% load widget_tweaks %} {% block title %}Редактирование «{{ post.title }}»{% endblock %} {% block styles %} {% endblock %} {% block content %} {% if post.is_locked == True %}
{% endif %}

Редактирование «{{ post }}»

В номерах: {% for issue in post.issues.all %} {{ issue }}{% if forloop.last is False %}, {% else %}. {% endif %} {% endfor %}

{% csrf_token %}
{% with field="kicker" size=4 %}{% include 'magplan/posts/_field_col.html' %}{% endwith %} {% with field="title" size=8 %}{% include 'magplan/posts/_field_col.html' %}{% endwith %} {% with field="description" size=12 %}{% include 'magplan/posts/_field_col.html' %}{% endwith %} {% with field="section" size=6 %}{% include 'magplan/posts/_field_col.html' %}{% endwith %} {% with field_name="authors" size=6 %} {% with field=form|get_item:field_name %}
{% if field.field.widget.is_hidden is True %} {{ field }} {% else %}
{% if field.field.widget.is_hidden is False %} {{ field.label }} {% endif %} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {% render_field field data-url=api_authors_search_url %}
{% endif %}
{% endwith %} {% endwith %}
{% with is_locked=post.is_locked images=post.images pdfs=post.pdfs files=post.files featured_image=post.featured_image %} {% include 'magplan/posts/_attachments.html' %} {% endwith %}

{% with field="xmd" size=12 %}{% include 'magplan/posts/_field_col.html' %}{% endwith %}
{% endblock %} {% block footer %} {% endblock %} {% block scripts %} {% endblock %}