From c35f75bc1b6f3f11fe071d088e63920ad1313468 Mon Sep 17 00:00:00 2001 From: Florian CAVASIN Date: Thu, 13 Feb 2025 09:10:45 +0100 Subject: [PATCH] [Login] toggle password visibility in login/sign up form (#210) Co-authored-by: Kevin Papst --- .editorconfig | 3 + templates/security.html.twig | 64 ++++++ translations/TablerBundle.de.xlf | 344 ++++++++++++++++--------------- translations/TablerBundle.en.xlf | 344 ++++++++++++++++--------------- translations/TablerBundle.fr.xlf | 8 + 5 files changed, 427 insertions(+), 336 deletions(-) diff --git a/.editorconfig b/.editorconfig index f3d51de..3495cae 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,9 @@ end_of_line = lf indent_size = 4 indent_style = space +[*.xlf] +indent_size = 2 + [*.php] insert_final_newline = true trim_trailing_whitespace = true diff --git a/templates/security.html.twig b/templates/security.html.twig index 5f27ac6..95dfd3b 100644 --- a/templates/security.html.twig +++ b/templates/security.html.twig @@ -52,6 +52,70 @@
+ {% block password_show %} + + + + {# Download SVG icon from http://tabler.io/icons/icon/eye #} + + + + + + + + + + + {% endblock %}
{% block remember_me %} diff --git a/translations/TablerBundle.de.xlf b/translations/TablerBundle.de.xlf index 6ce3885..5f95545 100644 --- a/translations/TablerBundle.de.xlf +++ b/translations/TablerBundle.de.xlf @@ -1,171 +1,179 @@ - - - - Toggle navigation - Ansicht der Seitenleiste umschalten - - - Toggle visibility - Sichtbarkeit umschalten - - - Remember Me - Dauerhaft anmelden - - - Sign in to start your session - Anmelden - - - Sign In - Anmelden - - - Sign out - Abmelden - - - Register - Registrieren - - - Profile - Dein Profil - - - Member since %date% - Mitglied seit %date% - - - Username - Benutzername - - - Username or email address - Benutzername oder E-Mail-Adresse - - - Password - Passwort - - - Show homepage - Zur Startseite - - - Back to login - Zurück zur Anmeldung - - - Reset your password - Passwort zurücksetzen - - - I forgot my password - Passwort vergessen - - - Register a new account - Neuen Benutzer registrieren - - - View all - Alle anzeigen - - - or - oder - - - You have %count% notifications - Du hast 1 Benachrichtigung|Du hast %count% Benachrichtigungen - - - You have %count% messages - Du hast 1 Nachricht|Du hast %count% Nachrichten - - - You have %count% tasks - Du hast 1 Aufgabe|Du hast %count% Aufgaben - - - %progress%% Complete - %progress%% erledigt - - - This is a mandatory field - Dies ist ein Pflichtfeld - - - registration.confirmed - Glückwunsch %username%, Ihr Benutzerkonto ist jetzt bestätigt. - - - Close - Schließen - - - Take me home - Zurück zum Anfang - - - http_error.title - Fehler - - - http_error.description - Etwas läuft falsch - - - http_error.suggestion - Ein kritischer Fehler ist aufgetreten. Möglicherweise haben Sie einen Fehler gefunden, kontaktieren Sie bitte ihren Administrator, falls der Fehler bestehen bleibt. - - - http_error_404.description - Seite wurde nicht gefunden - - - http_error_404.suggestion - Wir konnten die angeforderte Seite leider nicht finden. Bitte wechseln Sie zu ihrem Dashboard und starten von vorne. - - - http_error_403.description - Seite ist geschützt - - - http_error_403.suggestion - Entschuldigung, Sie haben nicht genügend Berechtigungen, um diese Seite zu sehen. Bitte sprechen Sie mit ihrem Administrator wenn Sie dies für einen Fehler halten. - - - Previous - Zurück - - - Next - Weiter - - - Show notifications - Zeige Benachrichtigungen - - - You have no notification - Es gibt keine Benachrichtigungen - - - And %count% more… - Und %count% weitere… - - - Actions - Actions - - - Open personal menu - Open personal menu - - - + + + + Toggle navigation + Ansicht der Seitenleiste umschalten + + + Toggle visibility + Sichtbarkeit umschalten + + + Remember Me + Dauerhaft anmelden + + + Sign in to start your session + Anmelden + + + Sign In + Anmelden + + + Sign out + Abmelden + + + Register + Registrieren + + + Profile + Dein Profil + + + Member since %date% + Mitglied seit %date% + + + Username + Benutzername + + + Username or email address + Benutzername oder E-Mail-Adresse + + + Password + Passwort + + + Show homepage + Zur Startseite + + + Back to login + Zurück zur Anmeldung + + + Reset your password + Passwort zurücksetzen + + + I forgot my password + Passwort vergessen + + + Register a new account + Neuen Benutzer registrieren + + + View all + Alle anzeigen + + + or + oder + + + You have %count% notifications + Du hast 1 Benachrichtigung|Du hast %count% Benachrichtigungen + + + You have %count% messages + Du hast 1 Nachricht|Du hast %count% Nachrichten + + + You have %count% tasks + Du hast 1 Aufgabe|Du hast %count% Aufgaben + + + %progress%% Complete + %progress%% erledigt + + + This is a mandatory field + Dies ist ein Pflichtfeld + + + registration.confirmed + Glückwunsch %username%, Ihr Benutzerkonto ist jetzt bestätigt. + + + Close + Schließen + + + Take me home + Zurück zum Anfang + + + http_error.title + Fehler + + + http_error.description + Etwas läuft falsch + + + http_error.suggestion + Ein kritischer Fehler ist aufgetreten. Möglicherweise haben Sie einen Fehler gefunden, kontaktieren Sie bitte ihren Administrator, falls der Fehler bestehen bleibt. + + + http_error_404.description + Seite wurde nicht gefunden + + + http_error_404.suggestion + Wir konnten die angeforderte Seite leider nicht finden. Bitte wechseln Sie zu ihrem Dashboard und starten von vorne. + + + http_error_403.description + Seite ist geschützt + + + http_error_403.suggestion + Entschuldigung, Sie haben nicht genügend Berechtigungen, um diese Seite zu sehen. Bitte sprechen Sie mit ihrem Administrator wenn Sie dies für einen Fehler halten. + + + Previous + Zurück + + + Next + Weiter + + + Show notifications + Zeige Benachrichtigungen + + + You have no notification + Es gibt keine Benachrichtigungen + + + And %count% more… + Und %count% weitere… + + + Actions + Actions + + + Open personal menu + Open personal menu + + + Show password + Passwort anzeigen + + + Hide password + Passwort verstecken + + + diff --git a/translations/TablerBundle.en.xlf b/translations/TablerBundle.en.xlf index d369a54..efceb5c 100644 --- a/translations/TablerBundle.en.xlf +++ b/translations/TablerBundle.en.xlf @@ -1,171 +1,179 @@ - - - - Toggle navigation - Toggle navigation - - - Toggle visibility - Toggle visibility - - - Remember Me - Remember Me - - - Login - Login - - - Log in - Log in - - - Log out - Log out - - - Register - Register - - - Profile - Your profile - - - Member since %date% - Member since %date% - - - Username - Username - - - Username or email address - Username or email address - - - Password - Password - - - Show homepage - Show homepage - - - Back to login - Back to login - - - Reset your password - Reset your password - - - I forgot my password - I forgot my password - - - Register a new account - Register a new account - - - View all - View all - - - or - or - - - You have %count% notifications - You have 1 notification|You have %count% notifications - - - You have %count% messages - You have 1 message|You have %count% messages - - - You have %count% tasks - You have 1 task|You have %count% tasks - - - %progress%% Complete - %progress%% completed - - - This is a mandatory field - This is a mandatory field - - - registration.confirmed - Congratulations %username%, your account is now activated. - - - Close - Close - - - Take me home - Take me home - - - http_error.title - Error - - - http_error.description - Something is wrong - - - http_error.suggestion - A critical error occurred, please try again. You may have found a software problem, please contact your administrator if the problem persists. - - - http_error_404.description - Page not found - - - http_error_404.suggestion - We could not find the page you were looking for. Please return to your dashboard and start over. - - - http_error_403.description - Page is restricted - - - http_error_403.suggestion - Sorry, but you don't have sufficient permissions to see this page. Please talk to your administrator if you think this is an error. - - - Previous - Previous - - - Next - Next - - - Show notifications - Show notifications - - - You have no notification - You have no notification - - - And %count% more… - And %count% more… - - - Actions - Actions - - - Open personal menu - Open personal menu - - - + + + + Toggle navigation + Toggle navigation + + + Toggle visibility + Toggle visibility + + + Remember Me + Remember Me + + + Login + Login + + + Log in + Log in + + + Log out + Log out + + + Register + Register + + + Profile + Your profile + + + Member since %date% + Member since %date% + + + Username + Username + + + Username or email address + Username or email address + + + Password + Password + + + Show homepage + Show homepage + + + Back to login + Back to login + + + Reset your password + Reset your password + + + I forgot my password + I forgot my password + + + Register a new account + Register a new account + + + View all + View all + + + or + or + + + You have %count% notifications + You have 1 notification|You have %count% notifications + + + You have %count% messages + You have 1 message|You have %count% messages + + + You have %count% tasks + You have 1 task|You have %count% tasks + + + %progress%% Complete + %progress%% completed + + + This is a mandatory field + This is a mandatory field + + + registration.confirmed + Congratulations %username%, your account is now activated. + + + Close + Close + + + Take me home + Take me home + + + http_error.title + Error + + + http_error.description + Something is wrong + + + http_error.suggestion + A critical error occurred, please try again. You may have found a software problem, please contact your administrator if the problem persists. + + + http_error_404.description + Page not found + + + http_error_404.suggestion + We could not find the page you were looking for. Please return to your dashboard and start over. + + + http_error_403.description + Page is restricted + + + http_error_403.suggestion + Sorry, but you don't have sufficient permissions to see this page. Please talk to your administrator if you think this is an error. + + + Previous + Previous + + + Next + Next + + + Show notifications + Show notifications + + + You have no notification + You have no notification + + + And %count% more… + And %count% more… + + + Actions + Actions + + + Open personal menu + Open personal menu + + + Show password + Show password + + + Hide password + Hide password + + + diff --git a/translations/TablerBundle.fr.xlf b/translations/TablerBundle.fr.xlf index 7edd1e0..e96787f 100644 --- a/translations/TablerBundle.fr.xlf +++ b/translations/TablerBundle.fr.xlf @@ -166,6 +166,14 @@ Open personal menu Ouvrir le menu personnel + + Show password + Afficher mot de passe + + + Hide password + Cacher mot de passe +