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:
InvenTree
@@ -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
|
||||
|
Reference in New Issue
Block a user