simplify formbuilder stylesheet specification

Since all forms are wrapped in a template that defines the actual
stylesheets, formbuilder just has to be told to turn on stylesheet mode,
not what file is the style sheet.
master
Joey Hess 2010-05-06 22:27:12 -04:00
parent d3aaf6e01f
commit 4c320176c0
4 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ sub cgi_signin ($$) {
action => $config{cgiurl},
header => 0,
template => {type => 'div'},
stylesheet => baseurl()."style.css",
stylesheet => 1,
);
my $buttons=["Login"];
@ -187,7 +187,7 @@ sub cgi_prefs ($$) {
params => $q,
action => $config{cgiurl},
template => {type => 'div'},
stylesheet => baseurl()."style.css",
stylesheet => 1,
fieldsets => [
[login => gettext("Login")],
[preferences => gettext("Preferences")],

View File

@ -103,7 +103,7 @@ sub confirmation_form ($$) {
javascript => 0,
params => $q,
action => $config{cgiurl},
stylesheet => IkiWiki::baseurl()."style.css",
stylesheet => 1,
fields => [qw{do page}],
);

View File

@ -126,7 +126,7 @@ sub rename_form ($$$) {
javascript => 0,
params => $q,
action => $config{cgiurl},
stylesheet => IkiWiki::baseurl()."style.css",
stylesheet => 1,
fields => [qw{do page new_name attachment}],
);

View File

@ -293,7 +293,7 @@ sub showform ($$) {
],
action => $config{cgiurl},
template => {type => 'div'},
stylesheet => IkiWiki::baseurl()."style.css",
stylesheet => 1,
);
$form->field(name => "do", type => "hidden", value => "setup",