diff --git a/webmin/edit_upgrade.cgi b/webmin/edit_upgrade.cgi index 4539083fd..e91036864 100755 --- a/webmin/edit_upgrade.cgi +++ b/webmin/edit_upgrade.cgi @@ -105,35 +105,34 @@ print ui_tabs_start_tab("mode", "update"); print "$text{'update_desc1'}

\n"; print ui_form_start("update.cgi", "post"); print ui_table_start($text{'update_header1'}); -print " \n"; -printf " %s
\n", - $config{'upsource'} ? "" : "checked", $text{'update_webmin'}; -printf " %s
\n", - $config{'upsource'} ? "checked" : "", $text{'update_other'}; -print " " x 4; -print &ui_textarea("other", join("\n", split(/\t+/, $config{'upsource'})), - 2, 50),"
\n"; +print &ui_table_row($text{'update_src'}, + &ui_radio("source", $config{'upsource'} ? 1 : 0, + [ [ 0, $text{'update_webmin'} ], + [ 1, $text{'update_other'} ] ])."
\n". + &ui_textarea("other", join("\n", split(/\t+/, $config{'upsource'})), + 2, 50)); -printf " %s
\n", - $config{'upshow'} ? "checked" : "", $text{'update_show'}; -printf " %s
\n", - $config{'upmissing'} ? "checked" : "", $text{'update_missing'}; -printf " %s
\n", - $config{'upthird'} ? "checked" : "", $text{'update_third'}; -printf " %s
\n", - $config{'upchecksig'} ? 'checked' : '', $text{'update_checksig'}; +print &ui_table_row($text{'update_opts'}, + &ui_checkbox("show", 1, $text{'update_show'}, + $config{'upshow'}). + "
\n". + &ui_checkbox("missing", 1, $text{'update_missing'}, + $config{'upmissing'}). + "
\n". + &ui_checkbox("third", 1, $text{'update_third'}, + $config{'upthird'}). + "
\n". + &ui_checkbox("checksig", 1, $text{'update_checksig'}, + $config{'upchecksig'})); -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "
$text{'update_user'}",&ui_textbox("upuser", $config{'upuser'}, 30),"
$text{'update_pass'}",&ui_password("uppass", $config{'uppass'}, 30),"
\n"; +print &ui_table_row($text{'update_user'}, + &ui_textbox("upuser", $config{'upuser'}, 30)); +print &ui_table_row($text{'update_pass'}, + &ui_password("uppass", $config{'uppass'}, 30)); print ui_table_end(); -print "\n"; -print "\n"; +print ui_form_end([ [ undef, $text{'update_ok'} ] ]); print ui_tabs_end_tab(); # Display scheduled update form diff --git a/webmin/lang/en b/webmin/lang/en index 1fde341d3..fede7cfa9 100644 --- a/webmin/lang/en +++ b/webmin/lang/en @@ -517,6 +517,8 @@ update_enosig=Could not download signature file for updates : $1 update_ebadsig=Updates signature check failed : $1 update_enomodsig=Could not download signature file for module : $1 update_ebadmodsig=Module signature check failed : $1 +update_src=Upgrade modules from +update_opts=Module update options ca_title=Certificate Authority ca_old=Existing certificate