From: Sven Schöling Date: Fri, 11 Jul 2008 15:15:43 +0000 (+0000) Subject: Vereinfachtes Template, und alten Code entfernt. X-Git-Tag: release-2.6.0beta1~54 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a9cc77186abf0504ff7239b146e9c5052f00cefe;p=kivitendo-erp.git Vereinfachtes Template, und alten Code entfernt. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index fe7788714..501dec288 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -274,16 +274,6 @@ sub form_header { # use JavaScript Calendar or not $form->{jsscript} = 1; - $TMPL_VAR{button1} = qq| - - text('button') . qq|> - |; - $TMPL_VAR{button2} = qq| - - text('button') . qq|> - |; - #write Trigger - $TMPL_VAR{jsscript} = Form->write_trigger(\%myconfig, "2", "transdate", "BL", "trigger1", "reqdate", "BL", "trigger2"); # openclosed checkboxes my @tmp; @@ -293,18 +283,7 @@ sub form_header { $form->{"closed"} ? "checked" : "", $locale->text('Closed') if $form->{id}; $TMPL_VAR{openclosed} = sprintf qq|%s\n|, 2 * scalar @tmp, join "\n", @tmp if @tmp; - # set option selected - foreach $item ($form->{vc}, 'currency', 'department', ($form->{vc} eq "customer" ? 'customer' : 'vendor')) { - $form->{"select$item"} =~ s/ selected//; - $form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; - } - - #quote select[customer|vendor] Bug 133 - $form->{"select$form->{vc}"} = $form->quote($form->{"select$form->{vc}"}); - - #substitute \n and \r to \s (bug 543) - $form->{"select$form->{vc}"} =~ s/[\n\r]/ /g; - + # project ids my @old_project_ids = ($form->{"globalproject_id"}, grep { $_ } map { $form->{"project_id_$_"} } 1..$form->{"rowcount"}); my $vc = $form->{vc} eq "customer" ? "customers" : "vendors"; diff --git a/templates/webpages/oe/form_header_de.html b/templates/webpages/oe/form_header_de.html index 064908abc..8f158c98c 100644 --- a/templates/webpages/oe/form_header_de.html +++ b/templates/webpages/oe/form_header_de.html @@ -227,7 +227,10 @@ Angebotsdatum [%- END %] - [% button1 %] + + + + @@ -237,7 +240,10 @@ Lieferdatum [%- END %] - [% button2 %] + + + + Projektnummer @@ -258,4 +264,9 @@ - [% jsscript %] + diff --git a/templates/webpages/oe/form_header_master.html b/templates/webpages/oe/form_header_master.html index 6521c6f84..1849c46a2 100644 --- a/templates/webpages/oe/form_header_master.html +++ b/templates/webpages/oe/form_header_master.html @@ -227,7 +227,10 @@ Quotation Date [%- END %] - [% button1 %] + + + + @@ -237,7 +240,10 @@ Required by [%- END %] - [% button2 %] + + + + Project Number @@ -258,4 +264,9 @@ - [% jsscript %] +