|
|
@ -10,44 +10,57 @@ block content |
|
|
|
br |
|
|
|
br |
|
|
|
+globalmanagenav('accounts') |
|
|
|
+globalmanagenav('accounts') |
|
|
|
hr(size=1) |
|
|
|
hr(size=1) |
|
|
|
h4.no-m-p Accounts: |
|
|
|
|
|
|
|
.form-wrapper.flexleft |
|
|
|
.form-wrapper.flexleft |
|
|
|
form.form-post(action=`/forms/global/editaccounts` method='POST' enctype='application/x-www-form-urlencoded') |
|
|
|
h4.no-m-p Search: |
|
|
|
input(type='hidden' name='_csrf' value=csrf) |
|
|
|
form.form-post.mv-5(action=`/globalmanage/accounts.html` method='GET') |
|
|
|
.table-container.flex-left |
|
|
|
input(type='hidden' value=page) |
|
|
|
table |
|
|
|
.row |
|
|
|
tr |
|
|
|
.label Username |
|
|
|
th |
|
|
|
input(type='text' name='username' value=username) |
|
|
|
th Username |
|
|
|
.row |
|
|
|
th Auth Level |
|
|
|
.label Board URI |
|
|
|
th Own Boards |
|
|
|
input(type='text' name='uri' value=uri) |
|
|
|
th Mod Boards |
|
|
|
input(type='submit', value='Filter') |
|
|
|
for account in accounts |
|
|
|
h4.no-m-p Accounts: |
|
|
|
|
|
|
|
if accounts && accounts.length > 0 |
|
|
|
|
|
|
|
form.form-post(action=`/forms/global/editaccounts` method='POST' enctype='application/x-www-form-urlencoded') |
|
|
|
|
|
|
|
input(type='hidden' name='_csrf' value=csrf) |
|
|
|
|
|
|
|
.table-container.flex-left |
|
|
|
|
|
|
|
table |
|
|
|
tr |
|
|
|
tr |
|
|
|
td: input(type='checkbox', name='checkedaccounts' value=account._id) |
|
|
|
th |
|
|
|
td #{account._id} |
|
|
|
th Username |
|
|
|
td #{account.authLevel} |
|
|
|
th Auth Level |
|
|
|
td |
|
|
|
th Own Boards |
|
|
|
if account.ownedBoards.length > 0 |
|
|
|
th Mod Boards |
|
|
|
for b in account.ownedBoards |
|
|
|
for account in accounts |
|
|
|
a(href=`/${b}/index.html`) /#{b}/ |
|
|
|
tr |
|
|
|
| |
|
|
|
td: input(type='checkbox', name='checkedaccounts' value=account._id) |
|
|
|
else |
|
|
|
td #{account._id} |
|
|
|
| - |
|
|
|
td #{account.authLevel} |
|
|
|
td |
|
|
|
td |
|
|
|
if account.modBoards.length > 0 |
|
|
|
if account.ownedBoards.length > 0 |
|
|
|
for b in account.modBoards |
|
|
|
for b in account.ownedBoards |
|
|
|
a(href=`/${b}/index.html`) /#{b}/ |
|
|
|
a(href=`/${b}/index.html`) /#{b}/ |
|
|
|
| |
|
|
|
| |
|
|
|
else |
|
|
|
else |
|
|
|
| - |
|
|
|
| - |
|
|
|
.pages.mt-5 |
|
|
|
td |
|
|
|
|
|
|
|
if account.modBoards.length > 0 |
|
|
|
|
|
|
|
for b in account.modBoards |
|
|
|
|
|
|
|
a(href=`/${b}/index.html`) /#{b}/ |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
| - |
|
|
|
|
|
|
|
.pages.mv-5 |
|
|
|
include ../includes/pages.pug |
|
|
|
include ../includes/pages.pug |
|
|
|
|
|
|
|
.row |
|
|
|
|
|
|
|
.label Set Auth Level |
|
|
|
|
|
|
|
input(type='number' name='auth_level') |
|
|
|
.row |
|
|
|
.row |
|
|
|
.label Delete Accounts |
|
|
|
.label Delete Accounts |
|
|
|
label.postform-style.ph-5 |
|
|
|
label.postform-style.ph-5 |
|
|
|
input(type='checkbox', name='delete_account', value='true') |
|
|
|
input(type='checkbox', name='delete_account', value='true') |
|
|
|
.row |
|
|
|
|
|
|
|
.label Set Auth Level |
|
|
|
|
|
|
|
input(type='number' name='auth_level') |
|
|
|
|
|
|
|
input(type='submit', value='apply') |
|
|
|
input(type='submit', value='apply') |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
p No results. |
|
|
|