Skip to content
Snippets Groups Projects
Commit 5ecc6779 authored by permcu's avatar permcu
Browse files

Add checkboxes for included parts to the coursebook-print-dialog

parent ccb26fb3
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -9,7 +9,7 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon
>
<template #activator>
<secondary-action-button
i18n-key="alsijil.coursebook.print"
i18n-key="alsijil.coursebook.print.button"
icon-text="$print"
:loading="loading"
@click="dialog=true"
......@@ -17,7 +17,7 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon
/>
</template>
<template #title>
{{ $t("alsijil.coursebook.print_title") }}
{{ $t("alsijil.coursebook.print.title") }}
</template>
<template #content>
<v-autocomplete
......@@ -31,6 +31,31 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon
chips
deletable-chips
/>
{{ $t("alsijil.coursebook.print.include") }}
<v-checkbox
v-model="includeCover"
:label="$t('alsijil.coursebook.print.include_cover')"
/>
<v-checkbox
v-model="includeAbbreviations"
:label="$t('alsijil.coursebook.print.include_abbreviations')"
/>
<v-checkbox
v-model="includeMembersTable"
:label="$t('alsijil.coursebook.print.include_members_table')"
/>
<v-checkbox
v-model="includeTeachersAndSubjectsTable"
:label="$t('alsijil.coursebook.print.include_teachers_and_subjects_table')"
/>
<v-checkbox
v-model="includePersonOverviews"
:label="$t('alsijil.coursebook.print.include_person_overviews')"
/>
<v-checkbox
v-model="includeCoursebook"
:label="$t('alsijil.coursebook.print.include_coursebook')"
/>
</template>
</mobile-fullscreen-dialog>
</template>
......@@ -71,6 +96,12 @@ export default {
return {
dialog: false,
currentGroupSelection: [],
includeCover: true,
includeAbbreviations: true,
includeMembersTable: true,
includeTeachersAndSubjectsTable: true,
includePersonOverviews: true,
includeCoursebook: true,
};
},
computed: {
......
......@@ -42,8 +42,6 @@
"title": "Fehler: keine Person | {name} erfolgreich als {reason} markiert | {n} Personen erfolgreich als {reason} markiert"
},
"menu_title": "Kursbuch",
"print": "Drucken",
"print_title": "Kursbuchausdruck",
"no_data": "Keine Stunden der ausgewählten Gruppen und Kurse im aktuellen Zeitraum",
"no_results": "Keine Suchergebnisse für {search}",
"notes": {
......@@ -99,6 +97,17 @@
"person_page": {
"title": "Statistiken"
}
},
"print": {
"button": "Drucken",
"title": "Kursbuchausdruck",
"include": "Drucke Abschnitte:",
"include_cover": "Deckblatt",
"include_abbreviations": "Abkürzungen",
"include_members_table": "Gruppenmitglieder-Tabelle",
"include_teachers_and_subjects_table": "Lehrer-und-Fächer-Tabelle",
"include_person_overviews": "Gruppenmitglieder-Übersicht",
"include_coursebook": "Kursbuch"
}
},
"excuse_types": {
......
......@@ -47,8 +47,6 @@
"title_plural": "Coursebook",
"title_documentations": "Coursebook",
"title_absences": "Coursebook · Absences",
"print": "Print",
"print_title": "Print Coursebook",
"status": {
"available": "Documentation available",
"missing": "Documentation missing",
......@@ -131,6 +129,17 @@
"title": "Error: no person | Successfully marked {name} as {reason} | Successfully marked {n} people as {reason}",
"description": "Do you want to mark them as {reason} for the rest of their day?",
"action_button": "Extend absence"
},
"print": {
"button": "Print",
"title": "Print Coursebook",
"include": "Print parts:",
"include_cover": "Cover",
"include_abbreviations": "Abbreviations",
"include_members_table": "Members Table",
"include_teachers_and_subjects_table": "Teachers and Subjects Table",
"include_person_overviews": "Person Overviews",
"include_coursebook": "Coursebook"
}
},
"personal_notes": {
......
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