X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/99ff7cb43e460029b1769fc21f704b7614381cf1..58494f1136f817ce26c0471d4918e45e1bac92e3:/contact/forms.py diff --git a/contact/forms.py b/contact/forms.py index 70a415b..4f5cf65 100644 --- a/contact/forms.py +++ b/contact/forms.py @@ -5,6 +5,7 @@ from django.core.validators import email_re from django import forms from django.template.loader import render_to_string from django.template import RequestContext +from django.utils.translation import ugettext_lazy as _ from .models import Attachment, Contact @@ -20,9 +21,13 @@ class ContactFormMeta(forms.Form.__metaclass__): class ContactForm(forms.Form): """Subclass and define some fields.""" __metaclass__ = ContactFormMeta + + form_tag = None + title = _('Contact form') + submit_label = _('Submit') + required_css_class = 'required' contact = forms.CharField(max_length=128) - form_tag = None def save(self, request): body = {}