From: Loic Baron Date: Thu, 15 Jan 2015 14:10:45 +0000 (+0100) Subject: Registration: authority selected after error in the form using POST value X-Git-Tag: myslice-1.3~119^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c241d680fcb7c027f8727075d5fff0788eea3057;p=unfold.git Registration: authority selected after error in the form using POST value --- diff --git a/portal/templates/onelab/onelab_registration_view.html b/portal/templates/onelab/onelab_registration_view.html index d3de3a6b..703b4af4 100644 --- a/portal/templates/onelab/onelab_registration_view.html +++ b/portal/templates/onelab/onelab_registration_view.html @@ -38,11 +38,19 @@ {% if authorities %} {% for authority in authorities %} {% if authority.name %} - + {% if authority.authority_hrn == authority_hrn %} + + {% else %} + + {% endif %} {% else %} + {% if authority.authority_hrn == authority_hrn %} + + {% else %} + {% endif %} {% endif %} - {% endfor %} + {% endfor %} {% else %} {% endif %} diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 8ad3bf52..4d09858e 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -38,11 +38,19 @@ {% if authorities %} {% for authority in authorities %} {% if authority.name %} - + {% if authority.authority_hrn == authority_hrn %} + + {% else %} + + {% endif %} {% else %} + {% if authority.authority_hrn == authority_hrn %} + + {% else %} + {% endif %} {% endif %} - {% endfor %} + {% endfor %} {% else %} {% endif %}