Adding fork functionality on entryVersions

This commit is contained in:
2021-12-26 21:00:50 +02:00
parent 8762e623d0
commit 9d8442bca9
3 changed files with 95 additions and 16 deletions

View File

@@ -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

View 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