From 817f7300b8c4fd8b23efc26e2f60b66f73287bb8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Oct 2010 17:16:25 +0200 Subject: [PATCH] =?utf8?q?R=C3=BCck=C3=BCbersetzung=20Button=20"Speichern?= =?utf8?q?=20und=20Schlie=C3=9Fen"=20durch=20Umstellung=20auf=20dispatcher?= =?utf8?q?=20vermeiden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Conflicts: bin/mozilla/oe.pl templates/webpages/oe/form_footer.html --- bin/mozilla/oe.pl | 14 +++++++++++ templates/webpages/oe/form_footer.html | 33 +++++++++++++------------- 2 files changed, 31 insertions(+), 16 deletions(-) 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 %] + -- 2.20.1