aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 21:57:25 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 21:57:25 +0000
commit93c6d2c340b9529eedf611d6e753030cc9c29ae9 (patch)
tree85d7b2b4fa5082fb804fdcdb2cf6958b3ac9b0ac /IkiWiki/CGI.pm
parente97b63c95aad40de6498bd480a38d7a57764ad53 (diff)
downloadikiwiki-93c6d2c340b9529eedf611d6e753030cc9c29ae9.tar
ikiwiki-93c6d2c340b9529eedf611d6e753030cc9c29ae9.tar.gz
* Use fieldsets in the preferences form to group related options together.
Especially cleans up the ordering of the admin's preferences form.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 2b7727000..b1caff96d 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -218,6 +218,11 @@ sub cgi_prefs ($$) { #{{{
action => $config{cgiurl},
template => scalar template_params("prefs.tmpl"),
stylesheet => baseurl()."style.css",
+ fieldsets => [
+ [login => gettext("Login")],
+ [preferences => gettext("Preferences")],
+ [admin => gettext("Admin")]
+ ],
);
my $buttons=["Save Preferences", "Logout", "Cancel"];
@@ -226,10 +231,12 @@ sub cgi_prefs ($$) { #{{{
});
$form->field(name => "do", type => "hidden");
- $form->field(name => "email", size => 50);
+ $form->field(name => "email", size => 50, fieldset => "preferences");
$form->field(name => "subscriptions", size => 50,
+ fieldset => "preferences",
comment => "(".htmllink("", "", "PageSpec", noimageinline => 1).")");
- $form->field(name => "banned_users", size => 50);
+ $form->field(name => "banned_users", size => 50,
+ fieldset => "admin");
my $user_name=$session->param("name");
if (! is_admin($user_name)) {