Revision bd1ece25
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
# default language
|
||
my $all_languages = SL::DB::Manager::Language->get_all;
|
||
|
||
# EÜR = cash, Bilanzierung = accrual
|
||
# EÜR = cash, Bilanzierung = accrual
|
||
|
||
foreach my $key (keys %{ $form->{IC} }) {
|
||
foreach my $accno (sort keys %{ $form->{IC}->{$key} }) {
|
||
... | ... | |
{ 'name' => $locale->text('Queue'), 'value' => 'queue', 'selected' => $selected{queue}, },
|
||
];
|
||
|
||
$form->{PRINTERS} = [];
|
||
foreach my $printer (SL::Printer->all_printers(%::myconfig)) {
|
||
push @{ $form->{PRINTERS} }, {
|
||
'name' => $printer->{printer_description},
|
||
'value' => $printer->{id},
|
||
'selected' => $printer->{id} == $myconfig{default_printer_id},
|
||
};
|
||
}
|
||
$form->{PRINTERS} = [ SL::Printer->all_printers(%::myconfig) ];
|
||
|
||
my %countrycodes = User->country_codes;
|
||
|
templates/webpages/am/config.html | ||
---|---|---|
[%- USE T8 %]
|
||
[%- USE LxERP %]
|
||
[% USE HTML %]<body onLoad="fokus()">
|
||
[% USE HTML %][% USE L %]<body onLoad="fokus()">
|
||
|
||
<p>
|
||
<div class="listtop">[% title %]</div>
|
||
... | ... | |
<tr>
|
||
<th align="right">[% 'Default printer' | $T8 %]</th>
|
||
<td>
|
||
<select name="default_printer_id">
|
||
[%- FOREACH row = PRINTERS %]
|
||
<option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
|
||
[%- END %]
|
||
</select>
|
||
[% L.select_tag('default_printer_id', L.options_for_select(PRINTERS, default => myconfig_default_printer_id, title => 'printer_description', with_empty => 1)) %]
|
||
</td>
|
||
</tr>
|
||
|
Auch abrufbar als: Unified diff
Ermöglichen, keinen Drucker als Standarddrucker auszuwählen