notify_on_register = True
required_css_class = 'required'
- contact = forms.CharField(max_length=128)
+ contact = forms.EmailField(label=_('E-mail'), max_length=128)
def __init__(self, *args, **kwargs):
key = kwargs.pop('key', None)
]
+class RemindForm(ContactForm):
+ form_tag = 'remind-me'
+ save_as_tag = 'remind-me-2017'
+ form_title = u'CopyCamp 2017'
+
+
class NextForm(ContactForm):
form_tag = '/next'
form_title = _('Next CopyCamp')
# -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
+
+from prawokultury.contact_forms import RegistrationForm
from .contact_forms import RegisterSpeaker
def registration_url(request):
speaker_form = RegisterSpeaker()
+ registration_form = RegistrationForm()
if speaker_form.started and not speaker_form.closed:
url = reverse("contact_form", args=["register-speaker"])
+ elif speaker_form.closed and not registration_form.started:
+ url = reverse("contact_form", args=["remind-me"])
else:
url = reverse("contact_form", args=["register"])
return {'REGISTRATION_URL': url}