wikijs-fork/server/views/pages/create.pug

25 lines
676 B
Plaintext
Raw Normal View History

extends ../layout.pug
block rootNavCenter
2017-05-03 01:41:22 +00:00
h2.nav-item= t('header.createdoc')
block rootNavRight
loading-spinner
2017-02-10 02:35:37 +00:00
span.nav-item
a.button.is-outlined(v-on:click='$store.dispatch("modalDiscardPage/open")')
2017-02-10 02:35:37 +00:00
i.icon-cross
2017-05-03 01:41:22 +00:00
span= t('nav.discard')
a.button(v-on:click='$root.$emit("editor/save")')
2017-02-10 02:35:37 +00:00
i.icon-check
2017-05-03 01:41:22 +00:00
span= t('nav.savedocument')
block content
editor(inline-template, current-path=pageData.meta.path, v-cloak)
2017-02-10 02:35:37 +00:00
.editor-area
textarea(ref='editorTextArea', v-pre)= pageData.markdown
editor-video
editor-codeblock
modal-discard-page(mode='create', current-path=pageData.meta.path)
page-loader(text=t('loading.editor'))