From: Thierry Parmentelat Date: Wed, 25 Sep 2013 13:03:37 +0000 (+0200) Subject: enable required fields in registration view X-Git-Tag: myslice-0.2-4~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=abb43f86edd5a2888cb96ca92a58350db9e32fcf;p=unfold.git enable required fields in registration view --- diff --git a/portal/registrationview.py b/portal/registrationview.py index d0455daf..f18726ef 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -131,5 +131,5 @@ class RegistrationView (View): 'authority_hrn': request.POST.get('authority_hrn', ''), 'email': request.POST.get('email', ''), 'password': request.POST.get('password', ''), - 'authorities': authorities + 'authorities': authorities, }) diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 8ce5661c..18759f4e 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -25,28 +25,33 @@
+
{% csrf_token %}
- +

Enter your first name

- +

Enter your last name

- + {% if authorities %} {% for authority in authorities %} - + {% endfor %} + {% else %} + + {% endif %}

Please select an authority responsible for vetting your account

@@ -55,29 +60,29 @@
- +

Enter a valid email address

- +

Enter password

- +

Retype the password

- @@ -87,7 +92,7 @@
+