more nice things

This commit is contained in:
vabene1111
2018-02-05 23:59:31 +01:00
parent ede7ddac0b
commit 59641e1af6
10 changed files with 220 additions and 164 deletions

View File

@ -85,3 +85,14 @@ class ImportForm(forms.Form):
self.helper.form_method = 'post'
self.helper.add_input(Submit('import', _('Import'), css_class='btn-primary'))
class BatchCategoryForm(forms.Form):
search = forms.CharField(label=_('Search String'))
category = forms.ModelChoiceField(queryset=Category.objects.all().order_by('id'))
def __init__(self, *args, **kwargs):
super(BatchCategoryForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_method = 'post'
self.helper.add_input(Submit('import', _('Import'), css_class='btn-primary'))