mirror of
https://github.com/webmin/webmin.git
synced 2025-07-29 11:50:54 +00:00
UI-libification of range form
This commit is contained in:
@ -22,39 +22,32 @@ else {
|
||||
&ui_print_header(undef, $text{'range_edit'}, "");
|
||||
}
|
||||
|
||||
print "<form action=save_range.cgi>\n";
|
||||
print "<input type=hidden name=new value=\"$in{'new'}\">\n";
|
||||
print "<input type=hidden name=idx value=\"$in{'idx'}\">\n";
|
||||
print "<table border width=100%>\n";
|
||||
print "<table border width=100%>\n";
|
||||
print "<tr $tb> <td><b>$text{'range_header'}</b></td> </tr>\n";
|
||||
print "<tr $cb> <td><table width=100%>\n";
|
||||
# Form start
|
||||
print &ui_form_start("save_range.cgi");
|
||||
print &ui_hidden("new", $in{'new'});
|
||||
print &ui_hidden("idx", $in{'idx'});
|
||||
print &ui_table_start($text{'range_header'}, "width=100%", 2);
|
||||
|
||||
# OS-specific range input
|
||||
&range_input($b);
|
||||
|
||||
print "</table></td></tr></table>\n";
|
||||
print "<table width=100%><tr>\n";
|
||||
# End and buttons
|
||||
print &ui_table_end();
|
||||
if ($in{'new'}) {
|
||||
print "<td><input type=submit value=\"$text{'create'}\"></td>\n";
|
||||
print "<td align=right><input type=submit ",
|
||||
"name=activate value=\"$text{'bifc_capply'}\"></td>\n";
|
||||
print &ui_form_end([ [ undef, $text{'create'} ],
|
||||
[ 'activate', $text{'bifc_capply'} ] ]);
|
||||
}
|
||||
else {
|
||||
print "<td><input type=submit value=\"$text{'save'}\"></td>\n"
|
||||
unless $always_apply_ifcs;
|
||||
if (defined(&apply_interface)) {
|
||||
print "<td align=center><input type=submit ",
|
||||
"name=activate value=\"$text{'bifc_apply'}\"></td>\n";
|
||||
}
|
||||
if (defined(&unapply_interface)) {
|
||||
print "<td align=center><input type=submit ",
|
||||
"name=unapply value=\"$text{'bifc_dapply'}\"></td>\n";
|
||||
}
|
||||
print "<td align=right><input type=submit name=delete ",
|
||||
"value=\"$text{'delete'}\"></td>\n"
|
||||
unless $noos_support_delete_ifcs;
|
||||
print &ui_form_end([
|
||||
!$always_apply_ifcs ? ( [ undef, $text{'save'} ] ) : ( ),
|
||||
defined(&apply_interface) ?
|
||||
( [ 'activate', $text{'bifc_apply'} ] ) : ( ),
|
||||
defined(&unapply_interface) ?
|
||||
( [ 'unapply', $text{'bifc_dapply'} ] ) : ( ),
|
||||
!$noos_support_delete_ifcs ?
|
||||
( [ 'delete', $text{'delete'} ] ) : ( ),
|
||||
]);
|
||||
}
|
||||
print "</tr></table></form>\n";
|
||||
|
||||
&ui_print_footer("list_ifcs.cgi?mode=boot", $text{'ifcs_return'});
|
||||
|
||||
|
Reference in New Issue
Block a user