diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue index 2972c41b9f16ba22e4d601b945e04f24bf7ec3bc..2f476124461ddec963b24d1e6cc384cbe6b4310b 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue @@ -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: { diff --git a/aleksis/apps/alsijil/frontend/messages/de.json b/aleksis/apps/alsijil/frontend/messages/de.json index 137470f1af1d7aca6e7ee2c6ad44f1442b4bbbe3..46048001389520f19494126a228a8853f3edf6f7 100644 --- a/aleksis/apps/alsijil/frontend/messages/de.json +++ b/aleksis/apps/alsijil/frontend/messages/de.json @@ -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": { diff --git a/aleksis/apps/alsijil/frontend/messages/en.json b/aleksis/apps/alsijil/frontend/messages/en.json index dabf5b01d509a9a195b9555f5c310f952065ee57..d023de79c456aac4bb3f9227d158d08fd9716315 100644 --- a/aleksis/apps/alsijil/frontend/messages/en.json +++ b/aleksis/apps/alsijil/frontend/messages/en.json @@ -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": {