diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-04-04 23:52:57 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-04-04 23:52:57 +0200 |
commit | dae61aa42792698fdff2870c9a83451f0569d36a (patch) | |
tree | a5518fc5ddb5e046e7f13f5dace5fabb3a1ab414 /src | |
parent | account checking without storing the email of the user (diff) | |
download | newspipe-dae61aa42792698fdff2870c9a83451f0569d36a.tar.gz newspipe-dae61aa42792698fdff2870c9a83451f0569d36a.tar.bz2 newspipe-dae61aa42792698fdff2870c9a83451f0569d36a.zip |
Updated signup form.
Diffstat (limited to 'src')
-rw-r--r-- | src/web/forms.py | 2 | ||||
-rw-r--r-- | src/web/templates/signup.html | 12 |
2 files changed, 7 insertions, 7 deletions
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 action="" method="post" name="save"> {{ form.hidden_tag() }} <div class="form-group"> - {{ form.nickname.label }} - {{ form.nickname(class_="form-control") }} {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} + {{ form.nickname(class_="form-control", placeholder=_('Your nickname')) }} {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} <p class="help-block">{{ _('Letters, numbers, dots and underscores only.') }}</p> </div> - {{ form.email.label }} - {{ form.email(class_="form-control") }} {% for error in form.email.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} <div class="form-group"> - {{ form.password.label }} - {{ form.password(class_="form-control") }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} + {{ form.email(class_="form-control", placeholder=_('Your email')) }} {% for error in form.email.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} + <p class="help-block">{{ _("Only for account activation. Your email won't be stored.") }}</p> + </div> + <div class="form-group"> + {{ form.password(class_="form-control", placeholder=_('Your password')) }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} <p class="help-block">{{ _('Minimum 6 characters.') }}</p> </div> <br /> |