From: Moritz Bunkus Date: Wed, 27 Oct 2010 15:16:25 +0000 (+0200) Subject: Rückübersetzung Button "Speichern und Schließen" durch Umstellung auf dispatcher... X-Git-Tag: release-2.6.2beta1~89^2~6^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=817f7300b8c4fd8b23efc26e2f60b66f73287bb8;p=kivitendo-erp.git Rückübersetzung Button "Speichern und Schließen" durch Umstellung auf dispatcher vermeiden Conflicts: bin/mozilla/oe.pl templates/webpages/oe/form_footer.html --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 20bb0fd28..3867c1b41 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1935,3 +1935,17 @@ sub report_for_todo_list { return $content; } +sub dispatcher { + my $form = $main::form; + my $locale = $main::locale; + + foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation + request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) { + if ($form->{"action_${action}"}) { + call_sub($action); + return; + } + } + + $form->error($locale->text('No action defined.')); +} diff --git a/templates/webpages/oe/form_footer.html b/templates/webpages/oe/form_footer.html index de6d7b9bb..7beb4076f 100644 --- a/templates/webpages/oe/form_footer.html +++ b/templates/webpages/oe/form_footer.html @@ -114,48 +114,49 @@ [% label_edit %]
- - - - - - + + + + + + [%- IF id %]
[% label_workflow %]
- - + + [%- IF is_sales_quo %] - + [%- END %] [%- IF is_req_quo %] - + [%- END %] [%- IF is_sales_ord || is_pur_ord %] - + [%- END %] - + [%- IF is_sales_ord || is_pur_ord %]
[% heading %] als neue Vorlage verwenden für
[%- IF is_sales_ord %] - - + + [%- ELSE %] [%- IF is_pur_ord %] - - + + [%- END %] [%- END %] [%- END %] [%- END %] +