mirror of
https://github.com/webmin/webmin.git
synced 2026-05-07 07:40:28 +01:00
Remove restart button from other pages for consistency
This commit is contained in:
@@ -7,8 +7,7 @@ use strict;
|
||||
use warnings;
|
||||
our (%text);
|
||||
|
||||
ui_print_header(undef, $text{'active_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'active_title'}, "", "intro", 1, 1);
|
||||
|
||||
my ($tables, $err) = get_active_nftables_save();
|
||||
if ($err) {
|
||||
|
||||
@@ -24,8 +24,7 @@ my @saved_tables = get_nftables_save();
|
||||
my $status_key = active_table_status($table, \@saved_tables);
|
||||
my $is_saved = table_is_webmin_managed($table, \@saved_tables);
|
||||
|
||||
ui_print_header(undef, $text{'active_table_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'active_table_title'}, "", "intro", 1, 1);
|
||||
|
||||
print ui_table_start($text{'active_table_summary'}, "width=100%", 2);
|
||||
print ui_table_row($text{'active_table'}, html_escape(nft_table_spec($table)));
|
||||
|
||||
@@ -30,8 +30,7 @@ if ($in{'confirm'}) {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'clear_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'clear_title'}, "", "intro", 1, 1);
|
||||
print "<center>\n";
|
||||
print ui_form_start("clear_table.cgi");
|
||||
print ui_hidden("family", $table->{'family'});
|
||||
|
||||
@@ -26,8 +26,7 @@ if ($in{'confirm'}) {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'clear_all_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'clear_all_title'}, "", "intro", 1, 1);
|
||||
print "<center>\n";
|
||||
print ui_form_start("clear_tables.cgi");
|
||||
print text('clear_all_confirm', scalar(@clearable)),"<p>\n";
|
||||
|
||||
@@ -50,8 +50,7 @@ if ($in{'create'}) {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'create_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'create_title'}, "", "intro", 1, 1);
|
||||
print ui_form_start("create_table.cgi");
|
||||
print ui_hidden("create", 1);
|
||||
|
||||
|
||||
@@ -42,8 +42,7 @@ if ($in{'confirm'}) {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'delete_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'delete_title'}, "", "intro", 1, 1);
|
||||
print "<center>\n";
|
||||
print ui_form_start("delete_table.cgi");
|
||||
print ui_hidden("table", $table_idx);
|
||||
|
||||
@@ -17,14 +17,12 @@ my $chain_name = "";
|
||||
my $is_new = $in{'new'} ? 1 : 0;
|
||||
|
||||
if ($is_new) {
|
||||
ui_print_header(undef, $text{'chain_title_new'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'chain_title_new'}, "", "intro", 1, 1);
|
||||
} else {
|
||||
$chain_name = $in{'chain'};
|
||||
$chain = $table->{'chains'}->{$chain_name};
|
||||
$chain || error($text{'chain_nochain'});
|
||||
ui_print_header(undef, $text{'chain_title_edit'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'chain_title_edit'}, "", "intro", 1, 1);
|
||||
}
|
||||
|
||||
my @type_opts = (
|
||||
|
||||
@@ -47,12 +47,10 @@ sub split_multi_value
|
||||
}
|
||||
|
||||
if ($in{'new'}) {
|
||||
ui_print_header(undef, $text{'edit_title_new'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'edit_title_new'}, "", "intro", 1, 1);
|
||||
$rule = { 'chain' => $in{'chain'} };
|
||||
} else {
|
||||
ui_print_header(undef, $text{'edit_title_edit'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'edit_title_edit'}, "", "intro", 1, 1);
|
||||
$rule = $table->{'rules'}->[$in{'idx'}];
|
||||
}
|
||||
if ($table && $rule->{'chain'}) {
|
||||
|
||||
@@ -17,15 +17,13 @@ my $set_name = "";
|
||||
my $is_new = $in{'new'} ? 1 : 0;
|
||||
|
||||
if ($is_new) {
|
||||
ui_print_header(undef, $text{'set_title_new'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'set_title_new'}, "", "intro", 1, 1);
|
||||
}
|
||||
else {
|
||||
$set_name = $in{'set'};
|
||||
$set = $table->{'sets'}->{$set_name};
|
||||
$set || error($text{'set_noset'});
|
||||
ui_print_header(undef, $text{'set_title_edit'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'set_title_edit'}, "", "intro", 1, 1);
|
||||
}
|
||||
|
||||
my $elements_text = set_elements_text($set);
|
||||
|
||||
@@ -60,8 +60,7 @@ if ($in{'import'}) {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'import_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'import_title'}, "", "intro", 1, 1);
|
||||
|
||||
print ui_form_start("import_table.cgi");
|
||||
print ui_hidden("family", $source->{'family'});
|
||||
|
||||
@@ -15,8 +15,7 @@ $table || error($text{'chain_notable'});
|
||||
my $chain = $table->{'chains'}->{$in{'chain'}};
|
||||
$chain || error($text{'chain_nochain'});
|
||||
|
||||
ui_print_header(undef, $text{'rename_chain_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'rename_chain_title'}, "", "intro", 1, 1);
|
||||
print ui_form_start("save_chain.cgi");
|
||||
print ui_hidden("table", $in{'table'});
|
||||
print ui_hidden("rename", 1);
|
||||
|
||||
@@ -47,8 +47,7 @@ if ($in{'action'} eq 'create') {
|
||||
return;
|
||||
}
|
||||
|
||||
ui_print_header(undef, $text{'setup_title'}, "", "intro", 1, 1,
|
||||
undef, restart_button());
|
||||
ui_print_header(undef, $text{'setup_title'}, "", "intro", 1, 1);
|
||||
|
||||
print ui_form_start("setup.cgi");
|
||||
print ui_hidden("action", "create");
|
||||
|
||||
Reference in New Issue
Block a user