From: Moritz Bunkus Date: Tue, 28 Feb 2017 10:32:40 +0000 (+0100) Subject: PrintOptions: Checkbox »Beidseitig« optional anzeigen X-Git-Tag: release-3.5.4~1261 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d5b1d0b19edfecbf04fd7995a288fa999724da3b;p=kivitendo-erp.git PrintOptions: Checkbox »Beidseitig« optional anzeigen --- 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 %]