From: Loic Baron Date: Fri, 10 Jan 2014 17:43:49 +0000 (+0100) Subject: Registration page: sorted list of authorities, autocomplete of authorities X-Git-Tag: myslice-0.3-0~39 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=c3272ce22d726e69598349413eb7a7e982b027d8;p=unfold.git Registration page: sorted list of authorities, autocomplete of authorities --- diff --git a/portal/registrationview.py b/portal/registrationview.py index 0002bf4e..6db03df1 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -45,12 +45,14 @@ class RegistrationView (FreeAccessView): print "FIREXP ENABLED" authorities = execute_admin_query(request, authorities_query) + authorities = sorted(authorities) # xxx tocheck - if authorities is empty, it's no use anyway # (users won't be able to validate the form anyway) page = Page(request) page.add_js_files ( [ "js/jquery.validate.js", "js/my_account.register.js" ] ) page.add_css_files ( [ "css/onelab.css", "css/registration.css" ] ) + page.add_css_files ( [ "http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" ] ) print 'registration view, method',method diff --git a/portal/static/js/my_account.register.js b/portal/static/js/my_account.register.js index 73b76aca..fe8f575c 100644 --- a/portal/static/js/my_account.register.js +++ b/portal/static/js/my_account.register.js @@ -26,8 +26,7 @@ jQuery(document).ready(function(){ jQuery("#upload_key").hide(); } }); - -}); + }); jQuery(function() { var availableTags = [ diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 52cb402d..450575d2 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -36,17 +36,10 @@
- -
+
+ +
+

An authority responsible for vetting your account

@@ -110,6 +103,22 @@ - + {% endblock %}