{% load widget_tweaks i18n compress slm %}
{% trans "Changes have been saved but are not public, please "%} {% trans "submit to publish!" %}
{% trans "This section has been deleted, please " %}{% trans "submit to publish!" %}
{% trans "This section has errors!" %}
{% csrf_token %} {% for structure in form.structured_fields %} {% if structure.0 %}
{{ structure.0 }} {% endif %} {% for field in structure.1 %} {% with diff=form.diff|key_value:field.name %} {% with flag=form.flags|key_value:field.name %} {% with field_id="id_"|add:field.name|add:"-"|add:form_id %}
{% if is_moderator and not form.instance.is_deleted %}
{% else %}
{% endif %} {% if field.is_hidden %} {% render_field field id=field_id %} {% else %} {% with field_classes=field|section_field_classes:form %} {% if form.instance.is_deleted %} {% render_field field id=field_id class+=field_classes disabled="" %} {% else %} {% render_field field id=field_id class+=field_classes %} {% endif %} {% endwith %} {% endif %} {% if not field.is_hidden %} {% if is_moderator %} {% elif flag %}
{{ flag }}
{% endif %} {% if diff %}
{% trans "The published value is " %}{{ diff.pub|value_filter }}
{% endif %} {% endif %}
{% if field.help_text %} {% endif %}
{% endwith %} {% endwith %} {% endwith %} {% endfor %} {% if structure.0 %}
{% endif %} {% endfor %}