From 8f6f52077049744fefcdd4e3d645eca32473914b Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Mon, 18 Aug 2014 21:29:06 +0200 Subject: [PATCH] Allow to display authority_hrn if we don't have the name --- portal/templates/onelab/onelab_registration_view.html | 3 +++ portal/templates/registration_view.html | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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 %} -- 2.43.0