mirror of https://gitgud.io/fatchan/jschan.git
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.
24 lines
798 B
24 lines
798 B
4 years ago
|
extends ../layout.pug
|
||
|
|
||
|
block head
|
||
|
title Edit News
|
||
|
|
||
|
block content
|
||
|
h1.board-title Edit News
|
||
|
include ../includes/stickynav.pug
|
||
|
.form-wrapper.flex-center.mv-10
|
||
|
form.form-post(action='/forms/global/editnews' method='POST')
|
||
|
input(type='hidden' name='_csrf' value=csrf)
|
||
|
input(type='hidden' name='news_id' value=news._id)
|
||
|
.table-container.flex-center.mv-5
|
||
|
table
|
||
|
tr
|
||
|
th
|
||
|
input.edit.left(type='text' name='title' value=news.title required)
|
||
|
- const newsDate = new Date(news.date);
|
||
|
time.right.reltime(datetime=newsDate.toISOString()) #{newsDate.toLocaleString(undefined, {hourCycle:'h23'})}
|
||
|
tr
|
||
|
td
|
||
|
textarea.edit.fw(name='message' rows='10' placeholder='Supports post styling' required) #{news.message.raw}
|
||
|
input(type='submit', value='save')
|