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.

39 lines
1.2 KiB

extends ../layout.pug
include ../mixins/boardheader.pug
include ../mixins/managenav.pug
include ../mixins/custompage.pug
block head
title /#{board._id}/ - Custom Pages
block content
+boardheader('Custom Pages')
br
+managenav('custompages')
hr(size=1)
h4.mv-5 Add Custom Page:
.form-wrapper.flexleft
form.form-post(action=`/forms/board/${board._id}/addcustompages`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
.row
.label .html name
input(type='text' name='page' pattern='[a-zA-Z0-9-_]+' title='a-zA-Z0-9-_ only' required)
.row
.label Title
input(type='text' name='title' required)
.row
.label Message
textarea(name='message' rows='10' placeholder='Supports post styling' required)
input(type='submit', value='Submit')
if customPages.length > 0
hr(size=1)
h4.no-m-p Manage Custom Pages:
.form-wrapper.flexleft
form.form-post(action=`/forms/board/${board._id}/deletecustompages`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
each page in customPages
+custompage(page, true)
if customPages.length === 1
.anchor
input(type='submit', value='Delete')