broken profile settings

This commit is contained in:
Xevion
2019-07-11 23:03:47 -05:00
parent e7b05ee4f9
commit 4b2d3aab53
4 changed files with 40 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
from app import app, db, login
from app.forms import ProfileSettingsForm
from app.forms import ProfileSettingsForm, ProfilePictureForm
from app.models import User, Search
from app.custom import require_role
from flask import render_template, redirect, url_for, request, jsonify
@@ -13,8 +13,9 @@ def dashboard():
@app.route('/dashboard/profile_settings', methods=['GET'])
@login_required
def profile_settings():
form = ProfileSettingsForm()
return render_template('/dashboard/profile_settings.html', form=form)
psform = ProfileSettingsForm()
ppform = ProfilePictureForm()
return render_template('/dashboard/profile_settings.html', psform=psform, ppform=ppform)
@app.route('/dashboard/profile_settings/submit', methods=['POST'])
@login_required