From a8be50f7a399cdd1e6aee38f89c196ff6263994a Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Fri, 12 Feb 2021 13:47:01 +0100
Subject: [PATCH] use similar layout for close button

---
 lib/AccountManager/L10N/fr.pm                  | 4 ++++
 templates/web/edugain/create_accounts.tt2.html | 7 ++++---
 templates/web/renater/create_accounts.tt2.html | 7 ++++---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/lib/AccountManager/L10N/fr.pm b/lib/AccountManager/L10N/fr.pm
index ce10958..cfd4285 100644
--- a/lib/AccountManager/L10N/fr.pm
+++ b/lib/AccountManager/L10N/fr.pm
@@ -267,6 +267,10 @@ msgstr "Vous pouvez informer les administrateurs du problème"
 msgid "You must be an administrator of that service to continue afterwards."
 msgstr "Vous devez être administrateur de ce service pour continuer ensuite."
 
+#: templates/web/renater/create_accounts.tt2.html:65
+msgid "close"
+msgstr "fermer"
+
 #: templates/web/edugain/create_accounts.tt2.html:32 templates/web/renater/create_accounts.tt2.html:34
 msgid "comment:"
 msgstr "commentaire:"
diff --git a/templates/web/edugain/create_accounts.tt2.html b/templates/web/edugain/create_accounts.tt2.html
index 5641111..f6575d4 100644
--- a/templates/web/edugain/create_accounts.tt2.html
+++ b/templates/web/edugain/create_accounts.tt2.html
@@ -40,9 +40,6 @@
         </div>
     </div>
     <div class="account reveal" data-reveal id="account_details_[% account.id() %]">
-        <button class="close-button" data-close aria-label="Close modal" type="button">
-            <span aria-hidden="true">&times;</span>
-        </button>
         <h3>[% lh.maketext("User attributes list") %]</h3>
 
         <div class="callout warning">
@@ -62,6 +59,10 @@
                 <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
             </tr>
         </table>
+
+        <div class="text-center" >
+            <button data-close>[% lh.maketext("close") %]</button>
+        </div>
     </div>
     [% END %]
 </div>
diff --git a/templates/web/renater/create_accounts.tt2.html b/templates/web/renater/create_accounts.tt2.html
index f8549e2..df5c136 100644
--- a/templates/web/renater/create_accounts.tt2.html
+++ b/templates/web/renater/create_accounts.tt2.html
@@ -42,9 +42,6 @@
         </div>
     </div>
     <div class="account reveal" data-reveal id="account_details_[% account.id() %]">
-        <button class="close-button" data-close aria-label="Close modal" type="button">
-            <span aria-hidden="true">&times;</span>
-        </button>
         <h3>[% lh.maketext("User attributes list") %]</h3>
 
         <div class="callout alert-callout-border warning">
@@ -64,6 +61,10 @@
                 <th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td>
             </tr>
         </table>
+
+        <div class="text-center">
+            <button data-close>[% lh.maketext("close") %]</button>
+        </div>
     </div>
     [% END %]
 </div>
-- 
GitLab