Adding fork functionality on entryVersions
This commit is contained in:
@@ -6,6 +6,9 @@ block content
|
||||
h1 #{entryVersion.entry.name}
|
||||
h2 #{entryVersion.tag}
|
||||
|
||||
.row
|
||||
.col.s12
|
||||
a.btn.black(href=`/fork/e/${entryVersion.id}`) fork
|
||||
.divider
|
||||
.row
|
||||
a.btn.black(href=`/v/${entryVersion.id}/chapters/add`) add chapter
|
||||
|
||||
22
server/views/fork-entry-version.pug
Normal file
22
server/views/fork-entry-version.pug
Normal file
@@ -0,0 +1,22 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Fork of #{entryVersion.entry.name}
|
||||
|
||||
.row
|
||||
.col.s12
|
||||
form.row(action=`/fork/e/${entryVersion.id}`, method="post")
|
||||
|
||||
.col.s12.input-field
|
||||
i.material-icons.prefix record_voice_over
|
||||
input#dialect-autocomplete.autocomplete(type="text", name="dialect", required, autocomplete="off")
|
||||
label(for="dialect-autocomplete") Dialect which this translation will be made in.
|
||||
.col.s12
|
||||
button.btn.black(type="submit") add translation
|
||||
|
||||
|
||||
block additionalScripts
|
||||
script
|
||||
include js/init-dialect-autocomplete.js
|
||||
Reference in New Issue
Block a user