move user edit routes into their own module and blueprint
This commit is contained in:
@@ -10,7 +10,6 @@ from atst.domain.users import Users
|
||||
from atst.domain.authnid import AuthenticationContext
|
||||
from atst.domain.audit_log import AuditLog
|
||||
from atst.domain.auth import logout as _logout
|
||||
from atst.forms.edit_user import EditUserForm
|
||||
|
||||
|
||||
bp = Blueprint("atst", __name__)
|
||||
@@ -119,19 +118,6 @@ def activity_history():
|
||||
return render_template("audit_log.html", audit_events=audit_events)
|
||||
|
||||
|
||||
@bp.route("/user")
|
||||
def user():
|
||||
form = EditUserForm(request.form)
|
||||
user = g.current_user
|
||||
return render_template("user/edit.html", form=form, user=user)
|
||||
|
||||
|
||||
@bp.route("/save_user")
|
||||
def save_user():
|
||||
# no op
|
||||
return redirect(url_for(".home"))
|
||||
|
||||
|
||||
@bp.route("/about")
|
||||
def about():
|
||||
return render_template("about.html")
|
||||
|
Reference in New Issue
Block a user