From: Loic Baron <loic.baron@lip6.fr>
Date: Mon, 18 Aug 2014 19:29:06 +0000 (+0200)
Subject: Allow to display authority_hrn if we don't have the name
X-Git-Tag: myslice-1.0~4^2^2~2
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8f6f52077049744fefcdd4e3d645eca32473914b;p=unfold.git

Allow to display authority_hrn if we don't have the name
---

diff --git a/portal/templates/onelab/onelab_registration_view.html b/portal/templates/onelab/onelab_registration_view.html
index 3436fa13..18314d3d 100644
--- a/portal/templates/onelab/onelab_registration_view.html
+++ b/portal/templates/onelab/onelab_registration_view.html
@@ -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 %}
diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html
index 9cbcacf9..ef29d3dd 100644
--- a/portal/templates/registration_view.html
+++ b/portal/templates/registration_view.html
@@ -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 %}