diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-20 14:04:02 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-20 14:28:43 -0700 |
commit | 39aa1db4d69eb2fb49da463f973484b501b3ee52 (patch) | |
tree | c4a1df1943338ba6cbab41e8de8edfd2e00b8904 /mediagoblin/templates | |
parent | 4adc3a85dda878b40f44e07b2283d4c55c6c5d02 (diff) | |
download | mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.tar.lz mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.tar.xz mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.zip |
moved change pass to a seperate view and fixed issues 709
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/change_pass.html | 52 | ||||
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/edit_account.html | 9 |
2 files changed, 58 insertions, 3 deletions
diff --git a/mediagoblin/templates/mediagoblin/edit/change_pass.html b/mediagoblin/templates/mediagoblin/edit/change_pass.html new file mode 100644 index 00000000..a621751f --- /dev/null +++ b/mediagoblin/templates/mediagoblin/edit/change_pass.html @@ -0,0 +1,52 @@ +{# +# GNU MediaGoblin -- federated, autonomous media hosting +# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +#} +{% extends "mediagoblin/base.html" %} + +{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} + +{% block mediagoblin_head %} + <script type="text/javascript" + src="{{ request.staticdirect('/js/show_password.js') }}"></script> +{% endblock mediagoblin_head %} + +{% block title -%} + {% trans username=user.username -%} + Changing {{ username }}'s password + {%- endtrans %} — {{ super() }} +{%- endblock %} + +{% block mediagoblin_content %} + <form action="{{ request.urlgen('mediagoblin.edit.pass') }}" + method="POST" enctype="multipart/form-data"> + <div class="form_box edit_box"> + <h1> + {%- trans username=user.username -%} + Changing {{ username }}'s password + {%- endtrans -%} + </h1> + {{ wtforms_util.render_divs(form) }} + {{ csrf_token }} + <div class="form_submit_buttons"> + <input type="submit" value="{% trans %}Save{% endtrans %}" + class="button_form" /> + </div> + </div> + </form> +{% endblock %} + + diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index 7fe2c031..dfb216e5 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -40,9 +40,12 @@ {%- trans username=user.username -%} Changing {{ username }}'s account settings {%- endtrans -%} - </h1> - {{ wtforms_util.render_field_div(form.old_password) }} - {{ wtforms_util.render_field_div(form.new_password) }} + </h1> + <p>{% trans %}Change your{% endtrans %} + <a href="{{ request.urlgen('mediagoblin.edit.pass') }}"> + {% trans %}password.{% endtrans %} + </a> + </p> <div class="form_field_input"> <p>{{ form.wants_comment_notification }} {{ wtforms_util.render_label(form.wants_comment_notification) }}</p> |