{% comment %} {% extends 'base.html' %} {% endcomment %} {% load progress_bar %} {% load static widget_tweaks %} {% load crispy_forms_tags %} {% block content %} {% if form %}
{% csrf_token %}
{% if sub_form %} {% crispy sub_form %} {% endif %} {% crispy form %} {% comment %} {% for field in form %}
{{ field.label_tag }} {% for error in field.errors %}
{{ error }}
{% endfor %} {{ field|attr:"class:form-control" }} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %} {% endcomment %}
{% endif %} {% if error_msg %}

{{ error_msg }}

{% endif %} {% endblock %}