simplify formbuilder stylesheet specification
authorJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 02:27:12 +0000 (22:27 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 02:27:12 +0000 (22:27 -0400)
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.

IkiWiki/CGI.pm
IkiWiki/Plugin/remove.pm
IkiWiki/Plugin/rename.pm
IkiWiki/Plugin/websetup.pm

index 07369ac1076e748f8cd95e1aab5c2354a33877c8..49a505514310be1be0e1b36c6064906964cb8f1a 100644 (file)
@@ -108,7 +108,7 @@ sub cgi_signin ($$) {
                action => $config{cgiurl},
                header => 0,
                template => {type => 'div'},
                action => $config{cgiurl},
                header => 0,
                template => {type => 'div'},
-               stylesheet => baseurl()."style.css",
+               stylesheet => 1,
        );
        my $buttons=["Login"];
        
        );
        my $buttons=["Login"];
        
@@ -187,7 +187,7 @@ sub cgi_prefs ($$) {
                params => $q,
                action => $config{cgiurl},
                template => {type => 'div'},
                params => $q,
                action => $config{cgiurl},
                template => {type => 'div'},
-               stylesheet => baseurl()."style.css",
+               stylesheet => 1,
                fieldsets => [
                        [login => gettext("Login")],
                        [preferences => gettext("Preferences")],
                fieldsets => [
                        [login => gettext("Login")],
                        [preferences => gettext("Preferences")],
index 0fc180f699ce0b2071067404bf3845b2a60b3a9e..a46294e788815f30358bdba535b107bd78c24ba4 100644 (file)
@@ -103,7 +103,7 @@ sub confirmation_form ($$) {
                javascript => 0,
                params => $q,
                action => $config{cgiurl},
                javascript => 0,
                params => $q,
                action => $config{cgiurl},
-               stylesheet => IkiWiki::baseurl()."style.css",
+               stylesheet => 1,
                fields => [qw{do page}],
        );
        
                fields => [qw{do page}],
        );
        
index 69e615eadbda5d29834c9a37e9acf3f7127d8688..537e913178f42cb93270a60bd6b2560cc6dda33a 100644 (file)
@@ -126,7 +126,7 @@ sub rename_form ($$$) {
                javascript => 0,
                params => $q,
                action => $config{cgiurl},
                javascript => 0,
                params => $q,
                action => $config{cgiurl},
-               stylesheet => IkiWiki::baseurl()."style.css",
+               stylesheet => 1,
                fields => [qw{do page new_name attachment}],
        );
        
                fields => [qw{do page new_name attachment}],
        );
        
index 4d2e611ebe17af3bbbaaed3b54002df89aaf811d..9cb5eb13c13740ed6e609679c49b0468458ec115 100644 (file)
@@ -293,7 +293,7 @@ sub showform ($$) {
                ],
                action => $config{cgiurl},
                template => {type => 'div'},
                ],
                action => $config{cgiurl},
                template => {type => 'div'},
-               stylesheet => IkiWiki::baseurl()."style.css",
+               stylesheet => 1,
        );
        
        $form->field(name => "do", type => "hidden", value => "setup",
        );
        
        $form->field(name => "do", type => "hidden", value => "setup",