Allow to display authority_hrn if we don't have the name
authorLoic Baron <loic.baron@lip6.fr>
Mon, 18 Aug 2014 19:29:06 +0000 (21:29 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Mon, 18 Aug 2014 19:29:06 +0000 (21:29 +0200)
portal/templates/onelab/onelab_registration_view.html
portal/templates/registration_view.html

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 %}