jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

extends ../layout.pug
include ../mixins/globalmanagenav.pug
block head
title Edit Account
block content
h1.board-title Global Management
br
+globalmanagenav('accounts', true)
hr(size=1)
h4.mv-5 Edit account permissions for "#{accountUsername}"
- const jsonPermissions = accountPermissions.toJSON();
.form-wrapper.flexleft
form(action=`/forms/global/editaccount` method='POST')
input(type='hidden' name='_csrf' value=csrf)
input(type='hidden' name='username' value=accountUsername)
for perm, index in Object.keys(jsonPermissions)
if jsonPermissions[perm].title && index > 0
hr(size=1)
h4.mv-5 #{jsonPermissions[perm].title}
.row
label.postform-style.ph-5
input(type='checkbox' name=perm value=jsonPermissions[perm].bit checked=jsonPermissions[perm].state)
.rlabel #{jsonPermissions[perm].label}
p #{jsonPermissions[perm].desc}
input(type='submit', value='Save')
hr(size=1)
h4.mv-5 Or, apply a role:
.row
.label Role
select(name='template')
option(disabled selected) None
//-limiting which ones atm
option(value=roles.ANON.base64) Regular User
option(value=roles.BOARD_STAFF.base64) Global Board Staff
option(value=roles.BOARD_OWNER.base64) Global Board Owner
option(value=roles.GLOBAL_STAFF.base64) Global Staff
option(value=roles.ADMIN.base64) Admin
input(type='submit', value='Apply')