From 2ba7603469a80ccfc1c07ddebc53ad6c6f0a6f79 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Tue, 21 May 2013 08:51:21 -0700 Subject: [PATCH] fixed translation, and changed tabs to spaces, and change it so the user can view their password as they're typing. --- mediagoblin/edit/forms.py | 3 ++- .../templates/mediagoblin/edit/change_pass.html | 10 +++++----- .../templates/mediagoblin/edit/edit_account.html | 14 +++++++------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index c67180e9..3b2486de 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -103,4 +103,5 @@ class ChangePassForm(wtforms.Form): new_password = wtforms.PasswordField( _('New password'), [wtforms.validators.Required(), - wtforms.validators.Length(min=6, max=30)]) + wtforms.validators.Length(min=6, max=30)], + id="password") diff --git a/mediagoblin/templates/mediagoblin/edit/change_pass.html b/mediagoblin/templates/mediagoblin/edit/change_pass.html index a621751f..ff909b07 100644 --- a/mediagoblin/templates/mediagoblin/edit/change_pass.html +++ b/mediagoblin/templates/mediagoblin/edit/change_pass.html @@ -40,13 +40,13 @@ {%- endtrans -%} {{ wtforms_util.render_divs(form) }} - {{ csrf_token }} + {{ csrf_token }}
-
- - + class="button_form" /> + + + {% endblock %} diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index dfb216e5..4c4aaf95 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -40,12 +40,12 @@ {%- trans username=user.username -%} Changing {{ username }}'s account settings {%- endtrans -%} - -

{% trans %}Change your{% endtrans %} - - {% trans %}password.{% endtrans %} - -

+ +

+ + {% trans %}Change your password.{% endtrans %} + +

{{ form.wants_comment_notification }} {{ wtforms_util.render_label(form.wants_comment_notification) }}

@@ -53,7 +53,7 @@ {{- wtforms_util.render_field_div(form.license_preference) }}
- {{ csrf_token }} + {{ csrf_token }}