Remove restart button from other pages for consistency

This commit is contained in:
Ilia Ross
2026-05-03 15:08:51 +02:00
parent 5c66e544b1
commit dbb19c30c4
12 changed files with 15 additions and 30 deletions

View File

@@ -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) {

View File

@@ -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)));

View File

@@ -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'});

View File

@@ -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";

View File

@@ -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);

View File

@@ -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);

View File

@@ -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 = (

View File

@@ -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'}) {

View File

@@ -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);

View File

@@ -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'});

View File

@@ -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);

View File

@@ -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");