From: Loic Baron Date: Wed, 5 Feb 2014 11:04:55 +0000 (+0100) Subject: list authorities, display name label only if available, else display authority_hrn X-Git-Tag: myslice-0.3-0~6 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=02c9260f3ec7e6b11f9b7330418f757075d2ed1f list authorities, display name label only if available, else display authority_hrn --- diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 7ed1bd11..1f27d418 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -108,7 +108,11 @@ jQuery(document).ready(function(){ var availableTags = [ {% if authorities %} {% for authority in authorities %} - {value:"{{ authority.authority_hrn }}",label:"{{authority.name}}"}, + {% if authority.name %} + {value:"{{ authority.authority_hrn }}",label:"{{authority.name}}"}, + {% else %} + {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"}, + {% endif %} {% endfor %} {% else %} {value:"",label:"No authority found !!!"} diff --git a/portal/templates/slicerequest_view.html b/portal/templates/slicerequest_view.html index af787c2f..fc912247 100644 --- a/portal/templates/slicerequest_view.html +++ b/portal/templates/slicerequest_view.html @@ -81,13 +81,17 @@