From: Moritz Bunkus Date: Wed, 31 Oct 2007 13:36:09 +0000 (+0000) Subject: Umstellung weiterer Vorlagen von HTML::Template auf Template. Zusätzlich Bugfix:... X-Git-Tag: release-2.6.0beta1~454 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=858ce3946daa658e51ee3adb70c322ba5af9d920;p=kivitendo-erp.git Umstellung weiterer Vorlagen von HTML::Template auf Template. Zusätzlich Bugfix: Sobald die Checkbox "Details anzeigen" einmal aktiviert war, konnte sie nicht mehr deaktiviert werden. --- 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 %]