{% if method|upper == "POST" %}{% csrf_token %}{% endif %} {% if fields %} {{ fields }} {% else %} {{ form }} {% endif %} {% if fields or form.fields %}
{% endif %}
{% if actions %} {{ actions }} {% else %} {% endif %}