sub confirm_price_update {
$lxdebug->enter_sub();
-
$form->{nextsub} = "update_prices";
$form->header;
- print qq|
-<body>
-
-<form method=post action=$form->{script}>
-|;
-
- # delete action variable
map { delete $form->{$_} } qw(action header);
-
- foreach my $key (keys %$form) {
- $form->{$key} =~ s/\"/"/g;
- print qq|<input type=hidden name=$key value="$form->{$key}">\n|;
- }
-
- print qq|
-<h2 class=confirm>| . $locale->text('Confirm!') . qq|</h2>
-
-<h4>| . $locale->text('Are you sure you want to update the prices') . qq| </h4>
-
-<p>
-<input name=action class=submit type=submit value="| . $locale->text('Continue') . qq|">
-</form>
-|;
+
+ print $form->parse_html_template('ic/confirm_price_update', { HIDDENS => [ map { name => $_, value => $form->{$_} }, keys %$form ] });
$lxdebug->leave_sub();
}
--- /dev/null
+[%- USE HTML %]
+[%- USE LxERP %]
+<body>
+
+<form method=post action="[% script %]">
+
+[%- FOREACH row = HIDDENS %]
+ <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
+[%- END %]
+
+<h2 class=confirm>Bestätigen Sie!</h2>
+
+<h4>Sind Sie sicher, dass Sie die Preise
+aktualisieren wollen?</h4>
+
+<p>
+<input name=action class=submit type=submit value="Weiter">
+</form>
--- /dev/null
+[%- USE HTML %]
+[%- USE LxERP %]
+<body>
+
+<form method=post action="[% script %]">
+
+[%- FOREACH row = HIDDENS %]
+ <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
+[%- END %]
+
+<h2 class=confirm><translate>Confirm!</translate></h2>
+
+<h4><translate>Are you sure you want to update the prices</translate></h4>
+
+<p>
+<input name=action class=submit type=submit value="<translate>Continue</translate>">
+</form>