Add ability to add language to project entities

This commit is contained in:
kngako
2023-01-09 02:19:32 +02:00
parent df9c01201f
commit 2f14e479a0
3 changed files with 254 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
extend templates/layout.pug
block content
.container
.center
h1 Languages of #{project.name}
.row
.col.s12
form.row(action=`/projects/${project.id}/languages/add`, 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 projects translations will be made in.
.col.s12
button.btn.black(type="submit") add language
block additionalScripts
script
include js/init-dialect-autocomplete.js