From abb43f86edd5a2888cb96ca92a58350db9e32fcf Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 25 Sep 2013 15:03:37 +0200 Subject: [PATCH] enable required fields in registration view --- portal/registrationview.py | 2 +- portal/templates/registration_view.html | 26 +++++++++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) 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 @@
+
-- 2.43.0