mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add some more options for modal forms
- Ability to display info or warning panels before the form
This commit is contained in:
parent
19854b4709
commit
7b4584ba2f
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user