Make lock form use new UI API
authorJamie Cameron <jcameron@webmin.com>
Mon, 28 Mar 2011 23:22:45 +0000 (16:22 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 28 Mar 2011 23:22:45 +0000 (16:22 -0700)
webmin/edit_lock.cgi

index 8cb8893..16e6a2c 100755 (executable)
@@ -9,16 +9,15 @@ print $text{'lock_desc'},"<p>\n";
 print &ui_form_start("change_lock.cgi", "post");
 print &ui_table_start($text{'lock_header'}, undef, 2);
 
-print "<tr> <td valign=top>\n";
-print &ui_radio("lockmode", int($gconfig{'lockmode'}),
+@grid = ( );
+push(@grid, &ui_radio("lockmode", int($gconfig{'lockmode'}),
                [ [ 0, $text{'lock_all'}."<br>" ],
                  [ 1, $text{'lock_none'}."<br>" ],
                  [ 2, $text{'lock_only'}."<br>" ],
-                 [ 3, $text{'lock_except'} ] ]);
-print "</td> <td valign=top>\n";
-print &ui_textarea("lockdirs", join("\n", split(/\t+/, $gconfig{'lockdirs'})),
-                  5, 40);
-print "</td> </tr>\n";
+                 [ 3, $text{'lock_except'} ] ]));
+push(@grid, &ui_textarea("lockdirs",
+               join("\n", split(/\t+/, $gconfig{'lockdirs'})), 10, 60));
+print &ui_table_row(undef, &ui_grid_table(\@grid, 2), 2);
 
 print &ui_table_end();
 print &ui_form_end([ [ "save", $text{'save'} ] ]);