mirror of https://gitgud.io/fatchan/jschan.git
parent
766fbe3b8c
commit
6dc671998d
9 changed files with 56 additions and 49 deletions
@ -1,18 +1,17 @@ |
||||
if bans.length === 0 |
||||
p No bans. |
||||
else |
||||
input(type='hidden' name='_csrf' value=csrf) |
||||
include ../includes/bantable.pug |
||||
form.form-post(action=`/forms/appeal`, enctype='application/x-www-form-urlencoded', method='POST') |
||||
include ./bantable.pug |
||||
for ban in bans |
||||
+ban(ban) |
||||
.action-wrapper.mv-10 |
||||
.row |
||||
label |
||||
input(type='radio' name='option' value='unban' checked='checked') |
||||
| Unban |
||||
.row |
||||
label |
||||
input(type='radio' name='option' value='deny_appeal') |
||||
| Deny Appeal |
||||
input(type='submit' value='submit') |
||||
|
||||
+ban(ban, true) |
||||
- const allowAppeal = bans.filter(ban => ban.allowAppeal === true && !ban.appeal).length > 0; |
||||
if allowAppeal === true |
||||
h4.no-m-p Appeal bans: |
||||
.form-wrapper.flexleft.mt-10 |
||||
input(type='hidden' name='_csrf' value=csrf) |
||||
.row |
||||
.label Message |
||||
textarea(rows='5' name='message' required) |
||||
.row |
||||
.label Captcha |
||||
span.col |
||||
include ./captcha.pug |
||||
input(type='submit', value='submit') |
||||
|
@ -0,0 +1,18 @@ |
||||
if bans.length === 0 |
||||
p No bans. |
||||
else |
||||
input(type='hidden' name='_csrf' value=csrf) |
||||
include ../includes/bantable.pug |
||||
for ban in bans |
||||
+ban(ban) |
||||
.action-wrapper.mv-10 |
||||
.row |
||||
label |
||||
input(type='radio' name='option' value='unban' checked='checked') |
||||
| Unban |
||||
.row |
||||
label |
||||
input(type='radio' name='option' value='deny_appeal') |
||||
| Deny Appeal |
||||
input(type='submit' value='submit') |
||||
|
Loading…
Reference in new issue