Allow to display authority_hrn if we don't have the name
[myslice.git] / portal / templates / onelab / onelab_registration_view.html
index 6201106..18314d3 100644 (file)
@@ -15,9 +15,9 @@
 {% if errors %}
 <div class="row">
        <div class="col-md-12">
-               <ul>
+               <ul class="error">
                  {% for error in errors %}
-                 <li>{{ error }}</li>
+                 <li>{{ error | safe }}</li>
                  {% endfor %}
                </ul>
        </div>
@@ -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 %}