Skip to content

Commit 5a7a5ee

Browse files
Merge pull request #8003 from carlobeltrame/page-numbers
Configurable page numbers in PDFs
2 parents c197381 + 7e10a79 commit 5a7a5ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+823
-54
lines changed

e2e/specs/nuxtPrint.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('Nuxt print test', () => {
1818
const printConfig = {
1919
language: 'en',
2020
documentName: 'camp',
21+
options: { pageNumbers: false },
2122
camp: campUri,
2223
contents: [
2324
{

frontend/src/components/activity/ScheduleEntry.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ export default {
410410
camp: this.camp._meta.self,
411411
language: this.$store.state.lang.language,
412412
documentName: this.activity.title,
413+
options: { pageNumbers: false },
413414
contents: [
414415
{
415416
type: 'Activity',

frontend/src/components/print/PrintConfigurator.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@
5151
</v-menu>
5252

5353
<template #drawer>
54+
<v-expansion-panels flat class="e-print-configurator__cnf">
55+
<v-expansion-panel class="transparent rounded-0">
56+
<v-expansion-panel-header class="subtitle py-2"
57+
>{{ $tc('components.print.printConfigurator.options') }}
58+
</v-expansion-panel-header>
59+
<v-expansion-panel-content>
60+
<e-checkbox
61+
v-model="cnf.options.pageNumbers"
62+
:label="$tc('components.print.printConfigurator.pageNumbers')"
63+
@input="onChange"
64+
/>
65+
</v-expansion-panel-content>
66+
</v-expansion-panel>
67+
</v-expansion-panels>
5468
<v-expansion-panels v-if="isDev" flat class="e-print-configurator__cnf">
5569
<v-expansion-panel class="transparent rounded-0">
5670
<v-expansion-panel-header class="subtitle py-2"
@@ -166,6 +180,7 @@ export default {
166180
this.$store.getters.getLastPrintConfig(this.camp._meta.self, {
167181
language: this.lang,
168182
documentName: campShortTitle(this.camp),
183+
options: { pageNumbers: false },
169184
camp: this.camp._meta.self,
170185
contents: this.defaultContents(),
171186
})

0 commit comments

Comments
 (0)