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.

36 lines
1.0 KiB

extends ../layout.pug
include ../mixins/newspost.pug
include ../mixins/globalmanagenav.pug
block head
script(src='/js/all.js')
title Manage
block content
h1.board-title Global Management
br
+globalmanagenav('news')
hr(size=1)
h4.no-m-p Add News:
section.form-wrapper.flexleft.mt-10
form.form-post(action=`/forms/global/addnews`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
section.row
.label Title
input(type='text' name='title' required)
section.row
.label Message
textarea(name='message' rows='10' placeholder='supports post styling' required)
input(type='submit', value='submit')
if news.length > 0
hr(size=1)
h4.no-m-p Delete News:
section.form-wrapper.flexleft.mt-10
form.form-post(action=`/forms/global/deletenews`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
each post in news
+newspost(post, true)
if news.length === 1
.anchor
input(type='submit', value='delete')