stuff working

This commit is contained in:
vabene1111
2018-02-05 21:12:29 +01:00
parent df576a20ba
commit eea37b9af5
10 changed files with 317 additions and 135 deletions

View File

@ -71,3 +71,14 @@ class EditRecipeForm(forms.ModelForm):
'category': _('Category'),
'keywords': _('Keywords'),
}
class ImportForm(forms.Form):
path = forms.CharField(label=_('Path'))
def __init__(self, *args, **kwargs):
super(ImportForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_method = 'post'
self.helper.add_input(Submit('import', _('Import'), css_class='btn-primary'))