mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Revert admin edit_user view
This commit is contained in:
parent
ad588c4344
commit
e611a15aac
@ -61,6 +61,10 @@ def edit_user(user_id):
|
|||||||
db.session.commit()
|
db.session.commit()
|
||||||
flash('The profile has been updated.')
|
flash('The profile has been updated.')
|
||||||
return redirect(url_for('admin.edit_user', user_id=user.id))
|
return redirect(url_for('admin.edit_user', user_id=user.id))
|
||||||
|
edit_user_form.email.data = user.email
|
||||||
|
edit_user_form.username.data = user.username
|
||||||
|
edit_user_form.confirmed.data = user.confirmed
|
||||||
|
edit_user_form.role.data = user.role_id
|
||||||
return render_template('admin/edit_user.html.j2',
|
return render_template('admin/edit_user.html.j2',
|
||||||
edit_user_form=edit_user_form,
|
edit_user_form=edit_user_form,
|
||||||
title='Administration: Edit user', user=user)
|
title='Administration: Edit user', user=user)
|
||||||
|
Loading…
Reference in New Issue
Block a user