Revision 3af76802
Von Bernd Bleßmann vor fast 9 Jahren hinzugefügt
SL/Helper/PrintOptions.pm | ||
---|---|---|
107 | 107 |
if ((ref $form->{printers} eq 'ARRAY') && scalar @{ $form->{printers } }); |
108 | 108 |
|
109 | 109 |
@SELECTS = map { |
110 |
sname => $_->[1], |
|
111 |
DATA => $_->[0], |
|
112 |
show => !$options->{"hide_" . $_->[1]} && scalar @{ $_->[0] } |
|
110 |
sname => $_->[1], |
|
111 |
DATA => $_->[0], |
|
112 |
show => !$options->{"hide_" . $_->[1]} && scalar @{ $_->[0]}, |
|
113 |
hname => $locale->text($_->[2]) |
|
113 | 114 |
}, |
114 |
[ \@FORMNAME, 'formname', ], |
|
115 |
[ \@LANGUAGE_ID, 'language_id', ], |
|
116 |
[ \@FORMAT, 'format', ], |
|
117 |
[ \@SENDMODE, 'sendmode', ], |
|
118 |
[ \@MEDIA, 'media', ], |
|
119 |
[ \@PRINTER_ID, 'printer_id', ]; |
|
115 |
[ \@FORMNAME, 'formname', 'Formname' ],
|
|
116 |
[ \@LANGUAGE_ID, 'language_id', 'Language' ],
|
|
117 |
[ \@FORMAT, 'format', 'Format' ],
|
|
118 |
[ \@SENDMODE, 'sendmode', 'Sendmode' ],
|
|
119 |
[ \@MEDIA, 'media', 'Media' ],
|
|
120 |
[ \@PRINTER_ID, 'printer_id', 'Printer' ];
|
|
120 | 121 |
|
121 | 122 |
my %dont_display_groupitems = ( |
122 | 123 |
'dunning' => 1, |
... | ... | |
125 | 126 |
|
126 | 127 |
my %template_vars = ( |
127 | 128 |
name_prefix => $prefix || '', |
129 |
show_headers => $options->{show_headers}, |
|
128 | 130 |
display_copies => scalar @{ $form->{printers} || [] } && $::lx_office_conf{print_templates}->{latex} && $form->{media} ne 'email', |
129 | 131 |
display_remove_draft => (!$form->{id} && $form->{draft_id}), |
130 | 132 |
display_groupitems => !$dont_display_groupitems{$form->{type}}, |
Auch abrufbar als: Unified diff
PrintOptions-Helper: Ausgabe der Header ermöglichen.