mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-11-09 08:40:07 +00:00
Add searchable User table.
This commit is contained in:
1 parent
14b64f86ba
commit
388e0433fd
3 files changed
+24
-7
No files matched your search
+3
-2
@@ -60,6 +60,7 @@ def dashboard():
|
||||
def for_admins_only():
|
||||
users = User.query.order_by(User.username).all()
|
||||
items = [AdminUserItem(u.username, u.email, u.role_id, u.confirmed) for u in users]
|
||||
table = AdminUserTable(items)
|
||||
table = AdminUserTable(items).__html__() # converts table object to html string
|
||||
table = table.replace('tbody', 'tbody class="list"', 1) # add class list to tbody element. Needed by list.js
|
||||
return render_template('main/admin.html.j2', title='Administration tools',
|
||||
table=table.__html__())
|
||||
table=table)
|
||||
Reference in new issue
Block a user