From 858ce3946daa658e51ee3adb70c322ba5af9d920 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 31 Oct 2007 13:36:09 +0000 Subject: [PATCH] =?utf8?q?Umstellung=20weiterer=20Vorlagen=20von=20HTML::T?= =?utf8?q?emplate=20auf=20Template.=20Zus=C3=A4tzlich=20Bugfix:=20Sobald?= =?utf8?q?=20die=20Checkbox=20"Details=20anzeigen"=20einmal=20aktiviert=20?= =?utf8?q?war,=20konnte=20sie=20nicht=20mehr=20deaktiviert=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 8 ++--- templates/webpages/oe/sales_order_de.html | 30 +++++++++---------- templates/webpages/oe/sales_order_master.html | 30 +++++++++---------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index eab834bda..a89de30c0 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -2199,11 +2199,9 @@ sub display_row { push @ROWS, { ROW1 => \@ROW1, ROW2 => \@ROW2, HIDDENS => \@HIDDENS, colspan => $colspan, }; } - print $form->parse_html_template('oe/sales_order', { ROWS => \@ROWS, - HEADER => \@HEADER, - show_details_checked => ($form->{show_details} ? "checked" : ""), - show_details_new => !$form->{show_details}, - }); + print $form->parse_html_template2('oe/sales_order', { ROWS => \@ROWS, + HEADER => \@HEADER, + }); if (0 != ($form->{sellprice_total} * 1)) { $form->{marge_percent} = ($form->{sellprice_total} - $form->{lastcost_total}) / $form->{sellprice_total} * 100; diff --git a/templates/webpages/oe/sales_order_de.html b/templates/webpages/oe/sales_order_de.html index daa53a841..7da135c02 100644 --- a/templates/webpages/oe/sales_order_de.html +++ b/templates/webpages/oe/sales_order_de.html @@ -1,26 +1,26 @@ - +[% USE HTML %] - - > + +
- - + [% FOREACH header = HEADER %][% IF header.display %] + [% END %][% END %] - - - + [% FOREACH row = ROWS %] + [% FOREACH row1 = row.ROW1 %] + [% END %] - - - - - style="display:none;"> - + [% END %]
[% header.value %]
[% row1.value %]
- + + [% FOREACH hidden = HIDDENS %][% hidden.value %] + [% END %] + +
[% FOREACH row2 = row.ROW2 %] + [% row2.value %][% END %]
diff --git a/templates/webpages/oe/sales_order_master.html b/templates/webpages/oe/sales_order_master.html index c5789c0ec..bb6b129ef 100644 --- a/templates/webpages/oe/sales_order_master.html +++ b/templates/webpages/oe/sales_order_master.html @@ -1,26 +1,26 @@ - +[% USE HTML %] - - > + +
- - + [% FOREACH header = HEADER %][% IF header.display %] + [% END %][% END %] - - - + [% FOREACH row = ROWS %] + [% FOREACH row1 = row.ROW1 %] + [% END %] - - - - - style="display:none;"> - + [% END %]
[% header.value %]
[% row1.value %]
- + + [% FOREACH hidden = HIDDENS %][% hidden.value %] + [% END %] + +
[% FOREACH row2 = row.ROW2 %] + [% row2.value %][% END %]
-- 2.20.1