From 02c9260f3ec7e6b11f9b7330418f757075d2ed1f Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Wed, 5 Feb 2014 12:04:55 +0100 Subject: [PATCH] list authorities, display name label only if available, else display authority_hrn --- portal/templates/registration_view.html | 6 +++++- portal/templates/slicerequest_view.html | 18 +++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) 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 @@