diff --git a/gadjo/locale/fr/LC_MESSAGES/django.po b/gadjo/locale/fr/LC_MESSAGES/django.po index b4b20c2..fb3d6fc 100644 --- a/gadjo/locale/fr/LC_MESSAGES/django.po +++ b/gadjo/locale/fr/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: gadjo 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-21 06:03+0000\n" -"PO-Revision-Date: 2020-08-21 08:03+0200\n" +"POT-Creation-Date: 2023-02-25 18:07+0100\n" +"PO-Revision-Date: 2023-02-25 18:08+0100\n" "Last-Translator: Frederic Peters \n" "Language: French\n" "MIME-Version: 1.0\n" @@ -25,36 +25,26 @@ msgstr "Il y a eu un problème à la validation du formulaire." msgid "(Hidden field %(name)s) %(error)s" msgstr "(champ caché %(name)s) %(error)s" -#: templates/gadjo/root.html:36 +#: templates/gadjo/password-widget.html:8 +msgid "Display password" +msgstr "Afficher le mot de passe" + +#: templates/gadjo/password-widget.html:9 +msgid "Display" +msgstr "Afficher" + +#: templates/gadjo/root.html:39 msgid "Logout" msgstr "Déconnexion" -#: templates/gadjo/root.html:54 -msgid "" -"\n" -"

Do you know your web browser is obsolete? We " -"recommend\n" -" you to update\n" -" your web browser or to use\n" -" different web browsers as some features may not work.\n" -" " -msgstr "" -"\n" -"

Savez-vous que votre navigateur est obsolète ? Nous " -"vous recommandons de mettre à jour votre navigateur ou d'utiliser un navigateur différent.\n" -" " - -#: templates/gadjo/root.html:70 +#: templates/gadjo/root.html:60 msgid "Homepage" msgstr "Accueil" -#: templates/gadjo/widget.html:11 +#: templates/gadjo/widget.html:12 msgid "This field is required." msgstr "Ce champ est obligatoire." -#: templates/gadjo/widget.html:13 +#: templates/gadjo/widget.html:14 msgid "(optional)" msgstr "(optionnel)" diff --git a/gadjo/static/css/_forms.scss b/gadjo/static/css/_forms.scss index 7a5dc4a..016769d 100644 --- a/gadjo/static/css/_forms.scss +++ b/gadjo/static/css/_forms.scss @@ -703,3 +703,23 @@ div.godo--editor { } } } + +.gadjo-password-field { + position: relative; + .title label { + padding-right: 6em; + } +} + +.password-visibility-checkbox { + display: flex; + position: absolute; + top: 0; + right: 0; + input + label { + margin: 0; + } + input { + margin: 0 0.25em 0 0; + } +} diff --git a/gadjo/templates/gadjo/password-widget.html b/gadjo/templates/gadjo/password-widget.html new file mode 100644 index 0000000..d176452 --- /dev/null +++ b/gadjo/templates/gadjo/password-widget.html @@ -0,0 +1,25 @@ +{% extends "gadjo/widget.html" %} +{% load i18n %} + +{% block widget-css-classes %}{{ block.super }} gadjo-password-field{% endblock %} + +{% block widget-bottom %} +

+ + +
+ +{% endblock %} diff --git a/gadjo/templates/gadjo/widget.html b/gadjo/templates/gadjo/widget.html index 79f0620..6bde427 100644 --- a/gadjo/templates/gadjo/widget.html +++ b/gadjo/templates/gadjo/widget.html @@ -1,9 +1,9 @@ {% load gadjo i18n %} -
{% block widget-title %}
@@ -36,6 +36,7 @@

{% endif %} {% endblock %} + {% block widget-bottom %}{% endblock %}
{% endblock %}