31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
extend templates/layout.pug
|
|
|
|
block content
|
|
-
|
|
const isOwnedByUser = project.owner.ownerEntities.some(ownerEntity => {
|
|
return ownerEntity.entity.entityUsers.some(entityUser => {
|
|
return entityUser.userId == user?.id
|
|
})
|
|
})
|
|
.container
|
|
.center
|
|
h1
|
|
small import
|
|
span= project.name
|
|
small translations
|
|
p.flow-text= project.description
|
|
|
|
.row
|
|
.col.s12
|
|
form.row(action=`/projects/${project.id}/import`, 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="translations")
|
|
.file-path-wrapper
|
|
input.file-path.validate(type="text", placeholder="Import translations")
|
|
.col.s12
|
|
button.btn.black(type="submit") import translations |