From d5b1d0b19edfecbf04fd7995a288fa999724da3b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Feb 2017 11:32:40 +0100 Subject: [PATCH] =?utf8?q?PrintOptions:=20Checkbox=20=C2=BBBeidseitig?= =?utf8?q?=C2=AB=20optional=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Helper/PrintOptions.pm | 2 ++ locale/de/all | 1 + templates/webpages/generic/print_options.html | 3 +++ 3 files changed, 6 insertions(+) diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index 164a5c39c..553e812b1 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -137,7 +137,9 @@ sub get_print_options { display_copies => scalar @{ $form->{printers} || [] } && $::lx_office_conf{print_templates}->{latex} && $form->{media} ne 'email', display_remove_draft => (!$form->{id} && $form->{draft_id}), display_groupitems => !$dont_display_groupitems{$form->{type}}, + display_bothsided => $options->{show_bothsided}, groupitems_checked => $form->{groupitems} ? "checked" : '', + bothsided_checked => $form->{bothsided} ? "checked" : '', remove_draft_checked => $form->{remove_draft} ? "checked" : '' ); diff --git a/locale/de/all b/locale/de/all index 74caa926d..694ee9e5b 100755 --- a/locale/de/all +++ b/locale/de/all @@ -461,6 +461,7 @@ $self->{texts} = { 'Books closed up to' => 'Bücher abgeschlossen bis zum', 'Boolean variables: If the default value is non-empty then the checkbox will be checked by default and unchecked otherwise.' => 'Ja/Nein-Variablen: Wenn der Standardwert nicht leer ist, so wird die Checkbox standardmäßig angehakt.', 'Both' => 'Beide', + 'Both-sided' => 'Beidseitig', 'Bottom' => 'Unten', 'Bought' => 'Gekauft', 'Break down by' => 'Aufschlüsseln nach', diff --git a/templates/webpages/generic/print_options.html b/templates/webpages/generic/print_options.html index 30b87df3c..5f1fd2c46 100644 --- a/templates/webpages/generic/print_options.html +++ b/templates/webpages/generic/print_options.html @@ -18,6 +18,9 @@ [%- IF display_groupitems %] [% 'Group Items' | $T8 %] [%- END %] + [%- IF display_bothsided %] + [% 'Both-sided' | $T8 %] + [%- END %] [%- IF display_remove_draft %] [% 'Remove Draft' | $T8 %] [%- END %] -- 2.20.1