create.pug 730 Bytes
Newer Older
1
extends ../layout.pug
2 3

block rootNavCenter
NGPixel's avatar
NGPixel committed
4
  h2.nav-item= t('header.createdoc')
5 6

block rootNavRight
7
  loading-spinner
NGPixel's avatar
NGPixel committed
8
  span.nav-item
9
    a.button.is-outlined(v-on:click='$store.dispatch("modalDiscardPage/open")')
10
      i.nc-icon-outline.ui-1_simple-remove
NGPixel's avatar
NGPixel committed
11
      span= t('nav.discard')
12
    a.button(v-on:click='$root.$emit("editor/save")')
13
      i.nc-icon-outline.ui-1_check
NGPixel's avatar
NGPixel committed
14
      span= t('nav.savedocument')
15 16

block content
17
  editor(inline-template, current-path=pageData.meta.path, v-cloak)
NGPixel's avatar
NGPixel committed
18
    .editor-area
19
      textarea(ref='editorTextArea', v-pre)= pageData.markdown
20

21
  editor-file
22 23
  editor-video
  editor-codeblock
24 25
  modal-discard-page(mode='create', current-path=pageData.meta.path)
  page-loader(text=t('loading.editor'))