Add some more options for modal forms

- Ability to display info or warning panels before the form
This commit is contained in:
Oliver Walters 2019-05-11 18:06:43 +10:00
parent 19854b4709
commit 7b4584ba2f

View File

@ -1,3 +1,14 @@
<div>
{% if form.pre_form_info %}
<div class='alert alert-info' role='alert' style='display: block;'>
{{ form.pre_form_info }}
</div>
{% endif %}
{% if form.pre_form_warning %}
<div class='alert alert-warning' role='alert' style='display: block;'>
{{ form.pre_form_warning }}
</div>
{% endif %}
{% block non_field_error %} {% block non_field_error %}
{% if form.non_field_errors %} {% if form.non_field_errors %}
<div class='alert alert-danger' role='alert' style='display: block;'> <div class='alert alert-danger' role='alert' style='display: block;'>
@ -6,6 +17,7 @@
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
</div>
{% block pre_form_content %} {% block pre_form_content %}
{% endblock %} {% endblock %}