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 |
form.form-post(action=`/forms/appeal`, enctype='application/x-www-form-urlencoded', method='POST') |
||||||
p No bans. |
include ./bantable.pug |
||||||
else |
|
||||||
input(type='hidden' name='_csrf' value=csrf) |
|
||||||
include ../includes/bantable.pug |
|
||||||
for ban in bans |
for ban in bans |
||||||
+ban(ban) |
+ban(ban, true) |
||||||
.action-wrapper.mv-10 |
- 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 |
.row |
||||||
label |
.label Message |
||||||
input(type='radio' name='option' value='unban' checked='checked') |
textarea(rows='5' name='message' required) |
||||||
| Unban |
|
||||||
.row |
.row |
||||||
label |
.label Captcha |
||||||
input(type='radio' name='option' value='deny_appeal') |
span.col |
||||||
| Deny Appeal |
include ./captcha.pug |
||||||
input(type='submit' value='submit') |
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