From f5d576d98feeb187175429b8e06152650b4e8a52 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Fri, 12 Feb 2021 12:59:20 +0100
Subject: [PATCH] simplification

An SP admin is expected to understand how SAML works.
---
 lib/AccountManager/L10N/fr.pm                 |  8 -------
 .../web/edugain/create_accounts.tt2.html      | 22 +++++++------------
 .../web/renater/create_accounts.tt2.html      | 22 +++++++------------
 3 files changed, 16 insertions(+), 36 deletions(-)

diff --git a/lib/AccountManager/L10N/fr.pm b/lib/AccountManager/L10N/fr.pm
index 25d763f..ce10958 100644
--- a/lib/AccountManager/L10N/fr.pm
+++ b/lib/AccountManager/L10N/fr.pm
@@ -39,10 +39,6 @@ msgstr "Profils d'utilisateur:"
 msgid "Accounts validity period, in days:"
 msgstr "Durée de validité des comptes, en jours:"
 
-#: templates/web/edugain/create_accounts.tt2.html:51 templates/web/renater/create_accounts.tt2.html:53
-msgid "After a successfull authentication process these attributes are transmitted via the SAML protocol to your service provider."
-msgstr "Ces attributs sont transmis via le protocole SAML, après une authentification réussie, à votre fournisseur de service."
-
 #: templates/web/renater/index.tt2.html:126
 msgid "All rights reserved"
 msgstr "Tous droits réservés"
@@ -77,10 +73,6 @@ msgstr "En tant que membre de l'accord GÉANT 2020 Framework Partnership Agreeme
 msgid "Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of the Service Provider <strong>%1</strong>."
 msgstr "Avant de pouvoir créer des comptes de test sur ce fournisseur d'identité, nous devons nous assurer que vous êtes un administrateur légitime du fournisseur de service <strong>%1</strong>."
 
-#: templates/web/edugain/create_accounts.tt2.html:50 templates/web/renater/create_accounts.tt2.html:52
-msgid "Below is the list of user attributes associated to this test account."
-msgstr "Voici la liste des attributs utilisateur associés à ce compte de test."
-
 #. (challenge_url)
 #: templates/mail/send_authentication_token.tt2.txt:6
 msgid "Challenge URL: %1"
diff --git a/templates/web/edugain/create_accounts.tt2.html b/templates/web/edugain/create_accounts.tt2.html
index a496036..e43d631 100644
--- a/templates/web/edugain/create_accounts.tt2.html
+++ b/templates/web/edugain/create_accounts.tt2.html
@@ -46,22 +46,16 @@
             <span aria-hidden="true">&times;</span>
         </button>
         <h3>[% lh.maketext("User attributes list") %]</h3>
-        <p>
-            [% lh.maketext("Below is the list of user attributes associated to this test account.") %] 
-            [% lh.maketext("After a successfull authentication process these attributes are transmitted via the SAML protocol to your service provider.") %]
-        </p>
-        <div>
-            <table>
+        <table>
     [% FOREACH pair IN attributes.pairs %]
-                <tr>
-                    <th>[% pair.key %]</th><td>[% pair.value.join(', ') %]</td>
-                </tr>
+            <tr>
+                <th>[% pair.key %]</th><td>[% pair.value.join(', ') %]</td>
+            </tr>
     [% END %]
-                <tr>
-                    <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
-                </tr>
-            </table>
-        </div>
+            <tr>
+                <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
+            </tr>
+        </table>
 
         <div class="callout warning">
             [% lh.maketext(
diff --git a/templates/web/renater/create_accounts.tt2.html b/templates/web/renater/create_accounts.tt2.html
index 68a461c..d455c72 100644
--- a/templates/web/renater/create_accounts.tt2.html
+++ b/templates/web/renater/create_accounts.tt2.html
@@ -48,22 +48,16 @@
             <span aria-hidden="true">&times;</span>
         </button>
         <h3>[% lh.maketext("User attributes list") %]</h3>
-        <p>
-            [% lh.maketext("Below is the list of user attributes associated to this test account.") %] 
-            [% lh.maketext("After a successfull authentication process these attributes are transmitted via the SAML protocol to your service provider.") %]
-        </p>
-        <div>
-            <table>
+        <table>
     [% FOREACH pair IN attributes.pairs %]
-                <tr>
-                    <th>[% pair.key %]</th><td>[% pair.value.join(', ') %]</td>
-                </tr>
+            <tr>
+                <th>[% pair.key %]</th><td>[% pair.value.join(', ') %]</td>
+            </tr>
     [% END %]
-                <tr>
-                    <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
-                </tr>
-            </table>
-        </div>
+            <tr>
+                <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
+            </tr>
+        </table>
 
         <div class="callout alert-callout-border warning">
             [% lh.maketext(
-- 
GitLab