From c241d680fcb7c027f8727075d5fff0788eea3057 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Thu, 15 Jan 2015 15:10:45 +0100 Subject: [PATCH] Registration: authority selected after error in the form using POST value --- .../templates/onelab/onelab_registration_view.html | 12 ++++++++++-- portal/templates/registration_view.html | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) 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 %} -- 2.47.0