From 402f43601164e26390cf7c78a383537eb009e499 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Thu, 11 Jul 2013 16:16:41 -0700 Subject: maybe have change password and email on same page --- .../templates/mediagoblin/edit/change_email.html | 45 ++++++++++++++++++++++ .../templates/mediagoblin/edit/edit_account.html | 5 +++ 2 files changed, 50 insertions(+) create mode 100644 mediagoblin/templates/mediagoblin/edit/change_email.html (limited to 'mediagoblin/templates') diff --git a/mediagoblin/templates/mediagoblin/edit/change_email.html b/mediagoblin/templates/mediagoblin/edit/change_email.html new file mode 100644 index 00000000..76cc4771 --- /dev/null +++ b/mediagoblin/templates/mediagoblin/edit/change_email.html @@ -0,0 +1,45 @@ +{# +# 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 . +#} +{% extends "mediagoblin/base.html" %} + +{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} + +{% block title -%} + {% trans username=user.username -%} + Changing {{ username }}'s email + {%- endtrans %} — {{ super() }} +{%- endblock %} + +{% block mediagoblin_content %} +
+
+

+ {%- trans username=user.username -%} + Changing {{ username }}'s email + {%- endtrans -%} +

+ {{ wtforms_util.render_divs(form, True) }} + {{ csrf_token }} +
+ +
+
+
+{% endblock %} diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index 51293acb..04f9230f 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -48,6 +48,11 @@

{% endif %} +

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

{% template_hook("edit_link") %} {{ wtforms_util.render_divs(form, True) }}
-- cgit v1.2.3