extends ../layout.pug
block append links
script(src="//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.7.2/ckeditor.js")
block title
|Icy Network - News - Compose
block body
.container.mt-4.mb-4
nav(aria-label="breadcrumb")
ol.breadcrumb
li.breadcrumb-item
a(href="/") Home
a(href="/news") News
li.breadcrumb-item.active(aria-current="page") Compose
if message.text
if message.error
.alert.alert-danger
span #{message.text}
else
.alert.alert-warning
form(action="", method="post")
input(type="hidden", name="csrf", value=csrf)
.form-group
label(for="title") Title
input.form-control(type="text", name="title", id="title", value=formkeep.title, aria-describedby="titleHelp")
small.form-text.text-muted#titleHelp Describe your article in a short sentence
label(for="composer1") Content
textarea.form-control(name="content" id="composer1") #{formkeep.content}
label(for="tags") Tags
input.form-control(type="text", name="tags", id="tags", value=formkeep.tags)
button.btn.btn-primary(type="submit") Submit
script.
CKEDITOR.replace('composer1')