wikijs-fork/views/pages/create.pug

35 lines
846 B
Plaintext

extends ../layout.pug
block rootNavCenter
h2.nav-item Create New Document
block rootNavRight
i.nav-item#notifload
span.nav-item
a.button.is-warning.btn-create-discard
span.icon
i.fa.fa-times
span Discard
a.button.is-success.btn-create-save
span.icon
i.fa.fa-check
span Save Document
block content
#page-type-create(data-entrypath=pageData.meta.path)
textarea#mk-editor= pageData.markdown
.modal#modal-create-discard
.modal-background
.modal-container
.modal-content
.card.is-fullwidth
header.card-header.is-warning
p.card-header-title Discard?
.card-content
.content
| Are you sure you want to leave this page and loose anything you wrote so far?
footer.card-footer
a.card-footer-item.btn-create-discard Stay on page
a.card-footer-item(href='/') Discard