From 99e420aa730ca1d640804e8ce4074d8abb62e927 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 20 Jan 2012 21:11:09 +0100 Subject: [PATCH] am/lead_header auf template umgestellt. --- bin/mozilla/am.pl | 43 ++++---------------------- templates/webpages/am/lead_header.html | 21 +++++++++++++ 2 files changed, 27 insertions(+), 37 deletions(-) create mode 100644 templates/webpages/am/lead_header.html diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 77b8e4d60..10ab28005 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -633,48 +633,17 @@ sub list_lead { } sub lead_header { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my $locale = $main::locale; - - $main::auth->assert('config'); - - $form->{title} = $locale->text("$form->{title} Lead"); + $::lxdebug->enter_sub; + $::auth->assert('config'); # $locale->text('Add Lead') # $locale->text('Edit Lead') + $::form->{title} = $::locale->text("$::form->{title} Lead"); - $form->{description} =~ s/\"/"/g; - - my $description = - qq||; - - $form->header; - - print qq| - - -
- -{id}> - - - - - - - - - - - - - -
$form->{title}
| . $locale->text('Description') . qq|$description

-|; + $::form->header; + print $::form->parse_html_template('am/lead_header'); - $main::lxdebug->leave_sub(); + $::lxdebug->leave_sub; } sub save_lead { diff --git a/templates/webpages/am/lead_header.html b/templates/webpages/am/lead_header.html new file mode 100644 index 000000000..2287eb65c --- /dev/null +++ b/templates/webpages/am/lead_header.html @@ -0,0 +1,21 @@ +[%- USE HTML %] +[%- USE T8 %] + + + + + + + + + + + + + + + + + + +
[% title | html %]
[% 'Description' | $T8 %]

-- 2.20.1