mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Move modal form error messages to the top
This commit is contained in:
		| @@ -1,13 +1,14 @@ | ||||
| {% block pre_form_content %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block non_field_error %} | ||||
| {% if form.non_field_errors %} | ||||
| <div class='alert alert-danger' role='alert' style='display: block;'> | ||||
|   <b>Error Submitting Form:</b> | ||||
|   {{ form.non_field_errors }} | ||||
| </div> | ||||
| {% endif %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block pre_form_content %} | ||||
| {% endblock %} | ||||
| <form method="post" action='' class='js-modal-form' enctype="multipart/form-data"> | ||||
|   {% csrf_token %} | ||||
|   {% load crispy_forms_tags %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user