{% load formit_tags %}
{% if is_blank %} {# Blank form block. #} {{ block_content }} {% else %} {# CSRF token. #} {% if show_csrf_token %}{% csrf_token %}{% endif %} {# Show non field errors. #} {% if show_non_field_errors and form.non_field_errors %} {% endif %} {# Either show rendered block, or display fieldset. #} {% if is_block %} {{ block_content }} {% else %} {% fieldset %} {% endif %} {# Show form button. #} {% if show_button %}{% endif %} {% endif %}
{% comment %} Variables: {{ form }} {{ action }} {{ method }} {{ enctype }} {{ button }} {{ novalidate }} Form block: {{ is_blank }} {{ is_block }} {{ block_content }} Flags: {{ show_csrf_token }} {{ show_non_field_errors }} {{ show_button }} {% endcomment %}