visual improvements

This commit is contained in:
vabene1111
2018-05-15 22:58:29 +02:00
parent b92c6dd88f
commit 0acecba367
8 changed files with 49 additions and 21 deletions

View File

@ -1,5 +1,3 @@
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from django.utils.translation import gettext as _
from django import forms
from .models import *
@ -17,12 +15,6 @@ class EditRecipeForm(forms.ModelForm):
'path': _('Path'),
}
def __init__(self, *args, **kwargs):
super(EditRecipeForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_method = 'post'
self.helper.add_input(Submit('save', _('Save'), css_class='btn-primary'))
class MonitorForm(forms.Form):
path = forms.CharField(label=_('Path'))