Revision cded3d3b
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
435 | 435 |
} |
436 | 436 |
} |
437 | 437 |
|
438 |
sub setup_oe_orders_action_bar { |
|
439 |
my %params = @_; |
|
440 |
|
|
441 |
return unless $::form->{type} eq 'sales_order'; |
|
442 |
|
|
443 |
for my $bar ($::request->layout->get('actionbar')) { |
|
444 |
$bar->add( |
|
445 |
action => [ |
|
446 |
t8('New sales order'), |
|
447 |
submit => [ '#form', { action => 'edit' } ], |
|
448 |
checks => [ [ 'kivi.check_if_entries_selected', '[name^=multi_id_]' ] ], |
|
449 |
accesskey => 'enter', |
|
450 |
], |
|
451 |
); |
|
452 |
} |
|
453 |
} |
|
454 |
|
|
438 | 455 |
sub form_header { |
439 | 456 |
$main::lxdebug->enter_sub(); |
440 | 457 |
my @custom_hiddens; |
... | ... | |
1158 | 1175 |
|
1159 | 1176 |
$report->set_options('top_info_text' => join("\n", @options), |
1160 | 1177 |
'raw_top_info_text' => $form->parse_html_template('oe/orders_top'), |
1161 |
'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
|
|
1178 |
'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom'), |
|
1162 | 1179 |
'output_format' => 'HTML', |
1163 | 1180 |
'title' => $form->{title}, |
1164 | 1181 |
'attachment_basename' => $attachment_basename . strftime('_%Y%m%d', localtime time), |
... | ... | |
1239 | 1256 |
$report->add_separator(); |
1240 | 1257 |
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal')); |
1241 | 1258 |
|
1259 |
setup_oe_orders_action_bar(); |
|
1242 | 1260 |
$report->generate_with_headers(action_bar => 1); |
1243 | 1261 |
|
1244 | 1262 |
$main::lxdebug->leave_sub(); |
locale/de/all | ||
---|---|---|
3568 | 3568 |
'You have not added bank accounts yet.' => 'Sie haben noch keine Bankkonten angelegt.', |
3569 | 3569 |
'You have not selected any delivery order.' => 'Sie haben keinen Lieferschein ausgewählt.', |
3570 | 3570 |
'You have not selected any export.' => 'Sie haben keinen Export ausgewählt.', |
3571 |
'You have not selected any item.' => 'Sie haben keine noch nicht gebuchten Einträge ausgewählt.',
|
|
3571 |
'You have not selected any item.' => 'Sie haben keine Einträge ausgewählt.', |
|
3572 | 3572 |
'You have selected none of the invoices.' => 'Sie haben keine der Rechnungen ausgewählt.', |
3573 | 3573 |
'You have to define a unit as a multiple of a smaller unit.' => 'Sie müssen Einheiten als ein Vielfaches einer kleineren Einheit eingeben.', |
3574 | 3574 |
'You have to enter a company name in the client configuration.' => 'Sie müssen in der Mandantenkonfiguration einen Firmennamen angeben.', |
templates/webpages/oe/orders_bottom.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[% USE HTML %] |
3 |
[%- IF SHOW_CONTINUE_BUTTON %] |
|
4 |
[% 'New sales order' | $T8 %]<br> |
|
5 |
<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]"> |
|
6 |
[%- END %] |
|
7 |
<input type="hidden" name="nextsub" value="edit"> |
|
8 | 3 |
<input type="hidden" name="type" value="[% HTML.escape(type) %]"> |
9 | 4 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
10 | 5 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
templates/webpages/oe/orders_top.html | ||
---|---|---|
1 |
<form method="post" action="oe.pl"> |
|
1 |
<form method="post" action="oe.pl" id="form"> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Angebots-/Auftragssuche