From 71e8211613ad1bfb473f33588521d70c27be1de3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 25 Jan 2012 13:34:09 +0100 Subject: [PATCH] am/audit_control auf template umgeschrieben. --- bin/mozilla/am.pl | 52 ++++-------------------- templates/webpages/am/audit_control.html | 27 ++++++++++++ 2 files changed, 34 insertions(+), 45 deletions(-) create mode 100644 templates/webpages/am/audit_control.html diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 0672e7c39..28b1a5228 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1124,55 +1124,17 @@ sub save_preferences { } sub audit_control { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - $main::auth->assert('config'); - - $form->{title} = $locale->text('Audit Control'); - - AM->closedto(\%myconfig, \%$form); - - $form->header; - - print qq| - - -
- - - - - - - -
$form->{title}
- - - - - -
| . $locale->text('Close Books up to') . qq|{closedto}>
-
- -
- -
- + $::lxdebug->enter_sub; + $::auth->assert('config'); - + $::form->{title} = $::locale->text('Audit Control'); -
+ AM->closedto(\%::myconfig, $::form); - - -|; + $::form->header; + print $::form->parse_html_template('am/audit_control'); - $main::lxdebug->leave_sub(); + $::lxdebug->leave_sub; } sub doclose { diff --git a/templates/webpages/am/audit_control.html b/templates/webpages/am/audit_control.html new file mode 100644 index 000000000..1675eab5e --- /dev/null +++ b/templates/webpages/am/audit_control.html @@ -0,0 +1,27 @@ +[%- USE HTML %] +[%- USE LxERP %] +[%- USE T8 %] +[%- USE L %] + + +

[% title | html %]

+ +
+ + + + + + +
[% 'Close Books up to' | $T8 %][% L.date_tag('closedto', closedto) %]
+ +
+ +
+ + + +
+ + + -- 2.20.1