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

View File

@@ -37,7 +37,12 @@ block content
a.btn.black(href=`/projects/${project.id}/import`)
i.material-icons.left file_upload
span import spreadsheets
.row
.col.s12
a.btn.black(href=`/projects/${project.id}/languages/add`)
i.material-icons.left record_voice_over
span add language
.divider
table.highlight
@@ -50,7 +55,7 @@ block content
span
th Name
th
a.dropdown-trigger language ▼
a.dropdown-trigger language (#{project.get("languageCount")}) ▼
th Artifact
th Chapter
th