Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab
authorCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Mon, 18 Aug 2014 20:56:01 +0000 (22:56 +0200)
committerCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Mon, 18 Aug 2014 20:56:01 +0000 (22:56 +0200)
portal/actions.py
portal/templates/onelab/onelab_registration_view.html
portal/templates/registration_view.html

index a2afbfc..38af28c 100644 (file)
@@ -424,6 +424,10 @@ def create_slice(wsgi_request, request):
     for user in user_details_sfa:
         user_email = user['user_email']
 
+    # XXX LOIC Quick fix because this is totally inconsistent
+    if not 'number_of_nodes' in request:
+        request['number_of_nodes']=""
+
     # XXX We should create a slice with Manifold terminology
     slice_params = {
         'slice_hrn'        : hrn, 
index 3436fa1..18314d3 100644 (file)
@@ -489,6 +489,9 @@ $(document).ready(function(){
         {% for authority in authorities %}
             {% if authority.name %}
                 {value:"{{ authority.name }}",label:"{{authority.name}}"},
+                       // show hrn if we don't have the name
+            {% else %}
+                {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
             {% endif %}
         {% endfor %}    
     {% else %}
index 9cbcacf..ef29d3d 100644 (file)
@@ -481,9 +481,9 @@ jQuery(document).ready(function(){
         {% for authority in authorities %}
             {% if authority.name %}
                 {value:"{{ authority.name }}",label:"{{authority.name}}"},
-                       // to show only full name
-           // {% else %}
-           //     {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
+                       // show hrn if we don't have the name
+            {% else %}
+                {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
             {% endif %}
         {% endfor %}    
     {% else %}