From e57ec2ccd1b39c1a2c713446c35f8be684a699ec Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Thu, 16 Apr 2020 17:59:53 +0000 Subject: [PATCH] Add help text for password checkbox in user creation --- users/forms.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index 7b133c4b..3cac1d16 100644 --- a/users/forms.py +++ b/users/forms.py @@ -384,7 +384,18 @@ class AdherentCreationForm(AdherentForm): un champ mot de passe""" if OptionalUser.get_cached_value("allow_set_password_during_user_creation"): # Champ pour choisir si un lien est envoyé par mail pour le mot de passe - init_password_by_mail = forms.BooleanField(required=False, initial=True) + init_password_by_mail_info = _( + "If this options is set, you will receive a link to set" + " your initial password by email. If you do not have" + " any means of accessing your emails, you can disable" + " this option to set your password immediatly." + ) + + init_password_by_mail = forms.BooleanField( + help_text=init_password_by_mail_info, + required=False, + initial=True + ) init_password_by_mail.label = _("Send password reset link by email.") # Champs pour initialiser le mot de passe