mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add missing save button https://forum.virtualmin.com/t/no-save-button-for-ssh-server-host-ssh-keys/121174
This commit is contained in:
@@ -34,14 +34,16 @@ print &ui_form_start("edit_keys.cgi");
|
||||
print "<b>Key filename</b>\n";
|
||||
print &ui_select("file", $in{'file'},
|
||||
[ map { [ $_ ] } @files ]),"\n";
|
||||
print &ui_submit('View');
|
||||
print &ui_submit($text{'keys_change'});
|
||||
print &ui_form_end();
|
||||
|
||||
# Show the file contents
|
||||
print &ui_form_start("save_manual.cgi", "form-data");
|
||||
print &ui_hidden("file", $in{'file'}),"\n";
|
||||
$data = &read_file_contents($in{'file'});
|
||||
print &ui_textarea("data", $data, 20, 80),"\n";
|
||||
print &ui_textarea("data", $data, 20, 80),"<br>\n";
|
||||
print &ui_submit($text{'save'});
|
||||
print &ui_form_end();
|
||||
|
||||
&ui_print_footer("", $text{'index_return'});
|
||||
|
||||
|
||||
@@ -231,6 +231,7 @@ sync_auto=<Automatic>
|
||||
keys_title=Host SSH Keys
|
||||
keys_desc=This page allows you to view the SSH keys for this host.
|
||||
keys_none=Could not find any HostKey entries in your SSHD configuration.
|
||||
keys_change=Change
|
||||
|
||||
manual_title=Edit Config Files
|
||||
manual_ecannot=You are not allowed to edit the SSH server config file
|
||||
|
||||
Reference in New Issue
Block a user