{% load i18n %} {% comment %} Everything a node has that is not on its row. For a new node there is no row, so this renders the whole form, summary fields included. {% endcomment %}
{% if new %} {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% for field in form.summary %}
{{ field }} {% if field.help_text %}{{ field.help_text }}{% endif %} {{ field.errors }}
{% endfor %} {% endif %} {% for field in form.rest %}
{{ field }} {% if field.help_text %}{{ field.help_text }}{% endif %} {{ field.errors }}
{% endfor %} {% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}