Add registration and login templates plus UI stuff, moderation
This commit is contained in:
11
apps/contact/forms.py
Normal file
11
apps/contact/forms.py
Normal file
@ -0,0 +1,11 @@
|
||||
from envelope.forms import ContactForm
|
||||
from crispy_forms.helper import FormHelper
|
||||
from crispy_forms.layout import Submit
|
||||
|
||||
|
||||
class ContactForm(ContactForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ContactForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.add_input(Submit('submit', 'Submit',
|
||||
css_class='btn-lg pull-right'))
|
Reference in New Issue
Block a user