This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/news/composer.pug

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-08-29 12:00:36 +00:00
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
2018-01-28 19:15:53 +00:00
.container.mt-4.mb-4
nav(aria-label="breadcrumb")
ol.breadcrumb
2018-02-07 17:03:57 +00:00
li.breadcrumb-item
2018-01-28 19:15:53 +00:00
a(href="/") Home
2018-02-07 17:03:57 +00:00
li.breadcrumb-item
2018-01-28 19:15:53 +00:00
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
span #{message.text}
form(action="", method="post")
input(type="hidden", name="csrf", value=csrf)
.form-group
2017-08-29 12:00:36 +00:00
label(for="title") Title
2018-01-28 19:15:53 +00:00
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
.form-group
2017-08-29 12:00:36 +00:00
label(for="composer1") Content
2018-01-28 19:15:53 +00:00
textarea.form-control(name="content" id="composer1") #{formkeep.content}
.form-group
2017-08-29 12:00:36 +00:00
label(for="tags") Tags
2018-01-28 19:15:53 +00:00
input.form-control(type="text", name="tags", id="tags", value=formkeep.tags)
button.btn.btn-primary(type="submit") Submit
script.
CKEDITOR.replace('composer1')
2017-08-29 12:00:36 +00:00