Add tab categorization option
authorJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 05:52:34 +0000 (21:52 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 05:52:34 +0000 (21:52 -0800)
cluster-webmin/edit_user.cgi
cluster-webmin/lang/en
cluster-webmin/save_user.cgi

index b5f9d9a..1381d3b 100755 (executable)
@@ -104,6 +104,12 @@ foreach $t ( { 'desc' => $text{'user_themedef'} }, @themes) {
        }
 print "</select></td> </tr>\n";
 
+print "<tr> <td valign=top><b>$text{'user_notabs'}</b></td>\n";
+print "<td>",ui_radio("notabs", int($user->{'notabs'}),
+                          [ [ 1, $text{'yes'} ],
+                            [ 2, $text{'no'} ],
+                            [ 0, $text{'default'} ] ]),"</td> </tr>\n";
+
 print "<tr> <td valign=top><b>$text{'user_ips'}</b></td>\n";
 print "<td>\n";
 print "<input name=ipmode type=radio value=-1 checked> $text{'user_leave'}\n";
index e21f34d..9c47954 100644 (file)
@@ -164,6 +164,7 @@ user_default=Server default
 user_themedef=Default Webmin theme
 user_ips=IP access control
 user_allips=Allow from all addresses
+user_notabs=Categorise modules?
 user_allow=Only allow from listed addresses
 user_deny=Deny from listed addresses
 user_mods=Modules
index 763c7bd..13896e8 100755 (executable)
@@ -99,6 +99,9 @@ foreach $h (@hosts) {
                        $user->{'sync'} = 0;
                        }
 
+               # Save module categorization setting
+               $user->{'notabs'} = $in{'notabs'};
+
                # Work out which modules the user has
                local @selmods = ( split(/\0/, $in{'mods1'}),
                                   split(/\0/, $in{'mods2'}),