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.
63 lines
2.0 KiB
63 lines
2.0 KiB
extends base/master
|
|
|
|
block append css
|
|
link[rel="stylesheet"][href="/ui/css/form.css"]
|
|
|
|
block append js
|
|
script[type="text/javascript"][src="/ui/js/form-page.js"]
|
|
|
|
block menu
|
|
import menu
|
|
|
|
block main
|
|
$page = $.Page
|
|
|
|
article
|
|
h1 Create
|
|
form[action="/page/create"][method="POST"]
|
|
p.danger #{$.Error}
|
|
|
|
input.big
|
|
[placeholder="Page Name"]
|
|
[value=$page.Name]
|
|
[type="text"]
|
|
[name="name"]
|
|
textarea.tall
|
|
[placeholder="Content"]
|
|
[name="source"]
|
|
| #{$page.Source}
|
|
input
|
|
[placeholder="IC Date (e.g. 'Oct 27, 2185')"]
|
|
[name="fictionalDate"]
|
|
[type="text"]
|
|
[value=$page.FictionalDate] ? !$page.FictionalDate.IsZero
|
|
|
|
h2 Category
|
|
div.group[title="Category"]
|
|
each $category in $.Categories
|
|
div.radio-wrapper
|
|
$radioid = printf("radio-%s", $category.Key)
|
|
if $category.Key == $page.Category
|
|
input[id=$radioid][name="category"][type="radio"][name="category"][value=$category.Key][checked]
|
|
else
|
|
input[id=$radioid][name="category"][type="radio"][name="category"][value=$category.Key]
|
|
label[for=$radioid]
|
|
b #{$category.Key}:
|
|
span #{$category.Info}
|
|
|
|
h2 Tags
|
|
textarea
|
|
[name="tags"]
|
|
[placeholder="Location: Miner's Respite\nOrganization: Redrock Agency\nCharacter: Renala T'Iavay\nEvent: Skipping Work\nSeries: Just Another Tuesday"]
|
|
| #{$.TagInput}
|
|
|
|
h2 Options
|
|
div.group
|
|
+formoption("unlisted", $page.Unlisted, "Unlisted", "The page will not show up in any page list. Meant for omni-tool messages, quick copypastes and so on.")
|
|
+formoption("indexed", $page.Unlisted, "Indexable", "Third-party search engines (that play by the rules) are permitted to crawl this page.")
|
|
|
|
// Future options (maybe)
|
|
input[type="hidden"][name="type"][value="Markdown"]
|
|
input[type="hidden"][name="published"][value="True"]
|
|
|
|
button[type="submit"] Create
|