Add projects to the system

This commit is contained in:
2021-12-27 18:48:38 +02:00
parent d8bf6dcafb
commit d590ae0179
9 changed files with 389 additions and 2 deletions

25
server/views/project.pug Normal file
View File

@@ -0,0 +1,25 @@
extend templates/layout.pug
block content
.container
.center
h1= project.name
p.flow-text= project.description
.divider
h2 Entries
each projectEntryVersion in project.projectEntryVersions
p.flow-text= projectEntryVersion.entryVersion.entry.name
.row
.col.s12
a.btn.black(href=`/projects/${project.id}/add-entry`) add from library
.divider
h2 Translation
each projectTranslationEntryVersion in project.projectTranslationEntryVersions
p.flow-text #{projectTranslationEntryVersion.translationEntryVersion.name} - #{projectTranslationEntryVersion.translationEntryVersion.entryVersion.entry.name}
.row
.col.s12
a.btn.black(href=`/projects/${project.id}/add-translation`) add translation
//- TODO: Show project translation entry versions
//- TODO: Show project entry versions