Files
mantra.press/server/views/chapters-upload.pug
2022-06-19 02:17:55 +02:00

21 lines
1016 B
Plaintext

extend templates/layout.pug
block content
.container
.center
h1 Chapter in #{artifactVersion.name}
.row
.col.s12
form.row(action=`/v/${artifactVersion.id}/chapters/upload`, method="post", encType="multipart/form-data")
//- .col.s12.input-field
textarea#textarea.materialize-textarea(name="text")
label(for="textarea") Entire chapter text (markdown)
.file-field.input-field.col.s12
.btn
span File
input#file-input(type="file", name="chapters" multiple)
.file-path-wrapper
input.file-path.validate(type="text", placeholder="Upload one or more file with the chapter content")
.col.s12
button.btn.black(type="submit") upload chapters