2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Updated modal form code

- Modal form template now uses multipart-data (to allow file uploads)
- Cleaned modal_form.js code (split into separate functions)
This commit is contained in:
Oliver
2018-05-03 23:38:32 +10:00
parent 9311164825
commit de176ecac9
2 changed files with 76 additions and 49 deletions

View File

@ -1,4 +1,4 @@
<form method="post" action='' class='js-modal-form'>
<form method="post" action='' class='js-modal-form' enctype="multipart/form-data">
{% csrf_token %}
{% load crispy_forms_tags %}
{% crispy form %}