2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-16 01:08:12 +00:00

Modal forms for stock app

This commit is contained in:
Oliver
2018-04-27 22:59:08 +10:00
parent b705f3c62a
commit 4d6e2aca2c
11 changed files with 232 additions and 90 deletions

View File

@@ -14,11 +14,7 @@ class EditStockLocationForm(forms.ModelForm):
super(EditStockLocationForm, 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 = StockLocation
@@ -35,11 +31,7 @@ class EditStockItemForm(forms.ModelForm):
super(EditStockItemForm, 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 = StockItem