From 4c4c58b9d0cff08381a7e2c1d0d3b2fbb4fc9ae4 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Tue, 11 Dec 2018 10:04:56 +0100
Subject: [PATCH] fix edugain template

---
 templates/web/edugain/select_sp.tt2.html | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/templates/web/edugain/select_sp.tt2.html b/templates/web/edugain/select_sp.tt2.html
index bdcabe8..2735ec5 100644
--- a/templates/web/edugain/select_sp.tt2.html
+++ b/templates/web/edugain/select_sp.tt2.html
@@ -15,9 +15,9 @@
             [% lh.maketext("You must be an administrator of that service to continue afterwards.") %]
         </p>
 
-[% FOREACH group IN groups() %]
+[% FOREACH group IN groups %]
         <fieldset>
-            <legend>[% lh.localize(group.label) %]</legend>
+            <legend>[% lh.maketext(group.label) %]</legend>
     [% SWITCH group.type %]
         [% CASE 'list' %]
             <select id="[% group.id %]" name="[% group.id %]">
@@ -27,7 +27,7 @@
             [% END %]
             </select>
         [% CASE 'link' %]
-            <a class="button" href="[% group.url %]">[% lh.localize(group.message) %]</a>
+            <a class="button" href="[% group.url %]">[% lh.maketext(group.message) %]</a>
     [% END %]
         </fieldset>
 [% END %]
@@ -90,8 +90,6 @@ $( document ).ready(function() {
 
                     // retrieve federation and entityid
                     var entity     = this.element.val();
-                    var federation = this.element.find('option:selected').attr('data-federation');
-                    $("#federation").val(federation);
                     $("#entityid").val(entity);
                 },
  
-- 
GitLab