From dae61aa42792698fdff2870c9a83451f0569d36a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 4 Apr 2018 23:52:57 +0200 Subject: Updated signup form. --- src/web/forms.py | 2 +- src/web/templates/signup.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/web/forms.py b/src/web/forms.py index 90e90584..eb571cc8 100644 --- a/src/web/forms.py +++ b/src/web/forms.py @@ -48,7 +48,7 @@ class SignupForm(Form): email = EmailField(lazy_gettext("Email"), [validators.Length(min=6, max=35), validators.Required( - lazy_gettext("Please enter your email address (for account activation, won't be stored)."))]) + lazy_gettext("Please enter your email address (only for account activation, won't be stored)."))]) password = PasswordField(lazy_gettext("Password"), [validators.Required(lazy_gettext("Please enter a password.")), validators.Length(min=6, max=100)]) diff --git a/src/web/templates/signup.html b/src/web/templates/signup.html index 69cf0506..8d34b3bf 100644 --- a/src/web/templates/signup.html +++ b/src/web/templates/signup.html @@ -5,15 +5,15 @@
{{ form.hidden_tag() }}
- {{ form.nickname.label }} - {{ form.nickname(class_="form-control") }} {% for error in form.nickname.errors %} {{ error }}
{% endfor %} + {{ form.nickname(class_="form-control", placeholder=_('Your nickname')) }} {% for error in form.nickname.errors %} {{ error }}
{% endfor %}

{{ _('Letters, numbers, dots and underscores only.') }}

- {{ form.email.label }} - {{ form.email(class_="form-control") }} {% for error in form.email.errors %} {{ error }}
{% endfor %}
- {{ form.password.label }} - {{ form.password(class_="form-control") }} {% for error in form.password.errors %} {{ error }}
{% endfor %} + {{ form.email(class_="form-control", placeholder=_('Your email')) }} {% for error in form.email.errors %} {{ error }}
{% endfor %} +

{{ _("Only for account activation. Your email won't be stored.") }}

+
+
+ {{ form.password(class_="form-control", placeholder=_('Your password')) }} {% for error in form.password.errors %} {{ error }}
{% endfor %}

{{ _('Minimum 6 characters.') }}


-- cgit