Textbox group member chooser option
authorJamie Cameron <jcameron@webmin.com>
Sat, 13 Dec 2008 00:40:37 +0000 (00:40 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 13 Dec 2008 00:40:37 +0000 (00:40 +0000)
35 files changed:
useradmin/CHANGELOG
useradmin/config-aix
useradmin/config-cobalt-linux
useradmin/config-coherent-linux
useradmin/config-corel-linux
useradmin/config-debian-linux
useradmin/config-freebsd
useradmin/config-generic-linux
useradmin/config-gentoo-linux
useradmin/config-hpux
useradmin/config-irix
useradmin/config-macos
useradmin/config-mandrake-linux
useradmin/config-msc-linux
useradmin/config-netbsd
useradmin/config-open-linux
useradmin/config-openbsd
useradmin/config-openmamba-linux
useradmin/config-openserver
useradmin/config-osf1
useradmin/config-redhat-linux
useradmin/config-slackware-linux
useradmin/config-sol-linux
useradmin/config-solaris
useradmin/config-suse-linux
useradmin/config-suse-linux-9.0-*
useradmin/config-trustix-linux
useradmin/config-turbo-linux
useradmin/config-united-linux
useradmin/config-unixware
useradmin/config.info
useradmin/edit_group.cgi
useradmin/help/2nd.html
useradmin/help/gmembers.html
useradmin/lang/en

index 7699be8..fe543b4 100644 (file)
@@ -51,3 +51,4 @@ Cleaned up the user interface to be more consistent with the rest of Webmin.
 Improved support for default password changing options on AIX.
 ---- Changes since 1.440 ----
 Added a non-editable list of users who have this group as their primary to the Edit Group page.
+Added a Module Config option to use a text box for entering secondary group members, rather than the left/right user chooser.
index 9f4780a..26b6f80 100644 (file)
@@ -40,3 +40,4 @@ shells=fixed,passwd,shells
 secmode=0
 last_show=0
 passwd_progmode=0
+membox=0
index f7030a7..b9f1aee 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 9dea71a..802e773 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 828e9fa..e918c32 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 828e9fa..e918c32 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index aab02b0..3b6d47b 100644 (file)
@@ -40,3 +40,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c2459f9..eab3372 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index a9cf019..dd82cff 100644 (file)
@@ -37,3 +37,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c6fc676..d7315ae 100644 (file)
@@ -37,3 +37,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index a4480f7..57014d9 100644 (file)
@@ -42,3 +42,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 687272f..b97670a 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 26c483a..0c46b4e 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 9dea71a..802e773 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 1874519..e381384 100644 (file)
@@ -37,3 +37,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 49be9be..92af507 100644 (file)
@@ -40,3 +40,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 3b364c9..30d0532 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 9dea71a..802e773 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 8701024..4e0993a 100644 (file)
@@ -47,3 +47,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c306957..c6d2293 100644 (file)
@@ -37,3 +37,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 9dea71a..802e773 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 3184542..e8c386f 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index e91da53..8c8bcc6 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 89b45b4..aea0f26 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c2459f9..eab3372 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 40a8255..c1b713a 100644 (file)
@@ -40,3 +40,4 @@ last_show=0
 nscd_restart=/etc/rc.d/nscd restart
 config-aix
 passwd_progmode=0
+membox=0
index 9dea71a..802e773 100644 (file)
@@ -38,3 +38,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c2459f9..eab3372 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c2459f9..eab3372 100644 (file)
@@ -39,3 +39,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index c7310e3..e7ca7a1 100644 (file)
@@ -37,3 +37,4 @@ secmode=0
 last_show=0
 config-aix
 passwd_progmode=0
+membox=0
index 45fb1e1..f03b22b 100644 (file)
@@ -44,6 +44,7 @@ random_password=Generate password for new users?,1,1-Yes,0-No
 extra_real=Show office and phone details?,1,1-Yes,0-No
 delete_root=Allow deletion of system users and groups?,1,1-Yes,0-No
 secmode=Show secondary groups on user form?,1,0-Yes,1-No,2-As text box
+membox=Edit group members using,1,1-Text box,0-User selector
 
 line5=Password restrictions,11
 passwd_min=Minimum password length,3,No minimum
index 2307b0a..062d1f7 100755 (executable)
@@ -25,7 +25,7 @@ else {
 # Start of form
 print &ui_form_start("save_group.cgi", "post");
 print &ui_hidden("num", $n) if ($n ne "");
-print &ui_table_start($text{'gedit_details'}, "width=100%", 4);
+print &ui_table_start($text{'gedit_details'}, "width=100%", 2, [ "width=30%" ]);
 
 # Group name
 print &ui_table_row(&hlink($text{'gedit_group'}, "ggroup"),
@@ -72,12 +72,22 @@ print &ui_table_row(&hlink($text{'pass'}, "gpasswd"),
 
 # Member chooser
 @ulist = &sort_users(\@ulist, $config{'sort_mode'});
-print &ui_table_row(&hlink($text{'gedit_members'}, "gmembers"),
-       &ui_multi_select("members",
-               [ map { [ $_, $_ ] } split(/,/ , $group{'members'}) ],
-               [ map { [ $_->{'user'}, $_->{'user'} ] } @ulist ],
-               10, 1, 0,
-               $text{'gedit_allu'}, $text{'gedit_selu'}, 150));
+if ($config{'membox'} == 0) {
+       # Nicer left/right chooser
+       print &ui_table_row(&hlink($text{'gedit_members'}, "gmembers"),
+               &ui_multi_select("members",
+                       [ map { [ $_, $_ ] } split(/,/ , $group{'members'}) ],
+                       [ map { [ $_->{'user'}, $_->{'user'} ] } @ulist ],
+                       10, 1, 0,
+                       $text{'gedit_allu'}, $text{'gedit_selu'}, 150));
+       }
+else {
+       # Text box
+       print &ui_table_row(&hlink($text{'gedit_members'}, "gmembers"),
+               &ui_textarea("members",
+                            join("\n", split(/,/ , $group{'members'})),
+                            5, 30));
+       }
 
 # Primary members (read-only)
 if ($n ne "") {
index a14a702..5de7961 100644 (file)
@@ -1,6 +1,11 @@
 <header>Secondary groups</header>
+
 A list of zero or more other groups to which this user belongs. If this
 user attempts to access a file and the group of that file is one of the
-secondary groups, then the group permissions for that file will apply.
-<hr>
+secondary groups, then the group permissions for that file will apply. <p>
+
+If using a text box to enter groups, each group name must be on a
+separate line. <p>
+
+<footer>
 
index 15208cb..b9af426 100644 (file)
@@ -6,6 +6,9 @@ that owns the file, then the group permissions for that file will apply. <p>
 
 This list does not include users who have this group as their
 <a href=group>primary group</a>, only users who have this as one of
-their <a href=2nd>secondary groups</a>. 
-<hr>
+their <a href=2nd>secondary groups</a>. <p>
+
+If using a text box to enter group members, each username must be on a separate line. <p>
+
+<footer>
 
index 231046b..abdd7ad 100644 (file)
@@ -181,6 +181,7 @@ gedit_details=Group Details
 gedit_group=Group name
 gedit_gid=Group ID
 gedit_members=Members
+gedit_oneperline=(One per line)
 gedit_homedirs=Home directories
 gedit_allfiles=All files
 gedit_ecreate=You cannot create new groups