{% extends "base.html" %} {% load erp_tags %} {% block title %}{{ page_title }}{% endblock %} {% block content %}

{{ page_title }}

{% csrf_token %} {% if form.non_field_errors %}
{% for e in form.non_field_errors %}

{{ e }}

{% endfor %}
{% endif %}
{% for field in form %}
{% if field.field.widget.input_type == "checkbox" %}
{{ field }}
{% else %} {{ field|add_class:"form-control form-control-sm" }} {% endif %} {% if field.errors %}
{{ field.errors.0 }}
{% endif %} {% if field.help_text %}{{ field.help_text }}{% endif %}
{% endfor %}
Cancel
{% endblock %}