import all

This commit is contained in:
vabene1111
2018-03-31 00:17:50 +02:00
parent b7fb7e8e9b
commit 69e22c743a
5 changed files with 25 additions and 7 deletions

View File

@ -84,11 +84,11 @@ class EditRecipeForm(forms.ModelForm):
self.helper.add_input(Submit('save', _('Save'), css_class='btn-primary'))
class ImportForm(forms.Form):
class MonitorForm(forms.Form):
path = forms.CharField(label=_('Path'))
def __init__(self, *args, **kwargs):
super(ImportForm, self).__init__(*args, **kwargs)
super(MonitorForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_method = 'post'
self.helper.add_input(Submit('import', _('Sync'), css_class='btn-primary'))