From 678ac670eaa887da54a3ce9c544e675436118a1e Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 9 Jul 2019 16:18:21 +0200 Subject: [PATCH] Update settings page. --- app/auth/views.py | 10 +++++----- .../auth/{account.html.j2 => settings.html.j2} | 11 ++++++++++- app/templates/base.html.j2 | 7 +------ 3 files changed, 16 insertions(+), 12 deletions(-) rename app/templates/auth/{account.html.j2 => settings.html.j2} (83%) diff --git a/app/auth/views.py b/app/auth/views.py index 657ef019..aff13813 100644 --- a/app/auth/views.py +++ b/app/auth/views.py @@ -125,9 +125,9 @@ def password_reset(token): title='Password Reset') -@auth.route('/account', methods=['GET', 'POST']) +@auth.route('/settings', methods=['GET', 'POST']) @login_required -def account(): +def settings(): form = ChangeAccountForm() if form.validate_on_submit(): flash('It is just a test, nothing changed.') @@ -142,6 +142,6 @@ def account(): if form.password.data: current_user.password = form.password.data db.session.commit() - return redirect(url_for('auth.account')) - return render_template('auth/account.html.j2', form=form, - title='Account') + return redirect(url_for('auth.settings')) + return render_template('auth/settings.html.j2', form=form, + title='Settings') diff --git a/app/templates/auth/account.html.j2 b/app/templates/auth/settings.html.j2 similarity index 83% rename from app/templates/auth/account.html.j2 rename to app/templates/auth/settings.html.j2 index 50c3e90c..7e54f521 100644 --- a/app/templates/auth/account.html.j2 +++ b/app/templates/auth/settings.html.j2 @@ -2,7 +2,16 @@ {% block page_content %}
-

Change account information

+

Settings

+

 

+
+ +
+

Account

+

Lo-fi you probably haven't heard of them etsy leggings raclette kickstarter four dollar toast. Raw denim fingerstache food truck chia health goth synth. Forage man bun intelligentsia freegan PBR&B banh mi asymmetrical chambray.

+
+ +
diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 735fa99c..96339df6 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -20,17 +20,12 @@
-