From 65be0598a96a6a24a1a6993df524fda256b9bc97 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 30 Apr 2007 21:27:58 +0000 Subject: * Use div layout for the signin and preferences forms, so that they can be styled using the stylesheet, rather than by creating signin and prefs templates. * Make the openid login form nicely styled. --- IkiWiki/CGI.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index b1caff96d..1471ae926 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -137,6 +137,7 @@ sub cgi_signin ($$) { #{{{ error($@) if $@; my $form = CGI::FormBuilder->new( title => "signin", + name => "signin", header => 1, charset => "utf-8", method => 'POST', @@ -145,7 +146,7 @@ sub cgi_signin ($$) { #{{{ params => $q, action => $config{cgiurl}, header => 0, - template => scalar template_params("signin.tmpl"), + template => {type => 'div'}, stylesheet => baseurl()."style.css", ); my $buttons=["Login"]; @@ -206,6 +207,7 @@ sub cgi_prefs ($$) { #{{{ error($@) if $@; my $form = CGI::FormBuilder->new( title => "preferences", + name => "preferences", header => 0, charset => "utf-8", method => 'POST', @@ -216,7 +218,7 @@ sub cgi_prefs ($$) { #{{{ javascript => 0, params => $q, action => $config{cgiurl}, - template => scalar template_params("prefs.tmpl"), + template => {type => 'div'}, stylesheet => baseurl()."style.css", fieldsets => [ [login => gettext("Login")], -- cgit v1.2.3