2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-20 03:36:30 +00:00

Modal for company create

- Ajax modals now return the URL of the item they are operating on
- passing {follow: true} to the modal caller will go to that URL on success
- footable'd company list
This commit is contained in:
Oliver
2018-04-27 21:58:22 +10:00
parent c4e305bde6
commit 36cf946a78
5 changed files with 52 additions and 23 deletions
InvenTree
InvenTree
company
static

@@ -34,12 +34,7 @@ class EditCompanyForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(EditCompanyForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-edit-part-form'
self.helper.form_class = 'blueForms'
self.helper.form_method = 'post'
self.helper.add_input(Submit('submit', 'Submit'))
self.helper.form_tag = False
class Meta:
model = Company