Skip to content
Snippets Groups Projects
Commit 8e13ec80 authored by permcu's avatar permcu
Browse files

Make coursebook-print-dialog a bit prettier

parent ef34f1e9
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
...@@ -22,6 +22,7 @@ import CancelButton from "aleksis.core/components/generic/buttons/CancelButton.v ...@@ -22,6 +22,7 @@ import CancelButton from "aleksis.core/components/generic/buttons/CancelButton.v
{{ $t("alsijil.coursebook.print.title") }} {{ $t("alsijil.coursebook.print.title") }}
</template> </template>
<template #content> <template #content>
{{ $t("alsijil.coursebook.print.groups") }}
<v-autocomplete <v-autocomplete
:items="availableGroups" :items="availableGroups"
item-text="name" item-text="name"
...@@ -33,42 +34,44 @@ import CancelButton from "aleksis.core/components/generic/buttons/CancelButton.v ...@@ -33,42 +34,44 @@ import CancelButton from "aleksis.core/components/generic/buttons/CancelButton.v
chips chips
deletable-chips deletable-chips
/> />
{{ $t("alsijil.coursebook.print.include") }} <div class="d-flex flex-column">
<v-checkbox {{ $t("alsijil.coursebook.print.include") }}
v-model="includeCover" <v-checkbox
:label="$t('alsijil.coursebook.print.include_cover')" v-model="includeCover"
/> :label="$t('alsijil.coursebook.print.include_cover')"
<v-checkbox />
v-model="includeAbbreviations" <v-checkbox
:label="$t('alsijil.coursebook.print.include_abbreviations')" v-model="includeAbbreviations"
/> :label="$t('alsijil.coursebook.print.include_abbreviations')"
<v-checkbox />
v-model="includeMembersTable" <v-checkbox
:label="$t('alsijil.coursebook.print.include_members_table')" v-model="includeMembersTable"
/> :label="$t('alsijil.coursebook.print.include_members_table')"
<v-checkbox />
v-model="includeTeachersAndSubjectsTable" <v-checkbox
:label="$t('alsijil.coursebook.print.include_teachers_and_subjects_table')" v-model="includeTeachersAndSubjectsTable"
/> :label="$t('alsijil.coursebook.print.include_teachers_and_subjects_table')"
<v-checkbox />
v-model="includePersonOverviews" <v-checkbox
:label="$t('alsijil.coursebook.print.include_person_overviews')" v-model="includePersonOverviews"
/> :label="$t('alsijil.coursebook.print.include_person_overviews')"
<v-checkbox />
v-model="includeCoursebook" <v-checkbox
:label="$t('alsijil.coursebook.print.include_coursebook')" v-model="includeCoursebook"
/> :label="$t('alsijil.coursebook.print.include_coursebook')"
/>
</div>
</template> </template>
<template #actions> <template #actions>
<!-- TODO: Should cancel reset state? -->
<cancel-button
@click="dialog=false"
/>
<primary-action-button <primary-action-button
i18n-key="alsijil.coursebook.print.button" i18n-key="alsijil.coursebook.print.button"
icon-text="$print" icon-text="$print"
@click="print" @click="print"
/> />
<!-- TODO: Should cancel reset state? -->
<cancel-button
@click="dialog=false"
/>
</template> </template>
</mobile-fullscreen-dialog> </mobile-fullscreen-dialog>
</template> </template>
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
"print": { "print": {
"button": "Drucken", "button": "Drucken",
"title": "Kursbuchausdruck", "title": "Kursbuchausdruck",
"groups": "Drucke Gruppen:",
"include": "Drucke Abschnitte:", "include": "Drucke Abschnitte:",
"include_cover": "Deckblatt", "include_cover": "Deckblatt",
"include_abbreviations": "Abkürzungen", "include_abbreviations": "Abkürzungen",
......
...@@ -133,7 +133,8 @@ ...@@ -133,7 +133,8 @@
"print": { "print": {
"button": "Print", "button": "Print",
"title": "Print Coursebook", "title": "Print Coursebook",
"include": "Print parts:", "groups": "Groups to print:",
"include": "Parts to print:",
"include_cover": "Cover", "include_cover": "Cover",
"include_abbreviations": "Abbreviations", "include_abbreviations": "Abbreviations",
"include_members_table": "Members Table", "include_members_table": "Members Table",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment