From: Florian Bührle Date: Sun, 19 May 2019 21:33:45 +0000 (+0200) Subject: Added reboot notice X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=7478903fb172d6d2539197009a2cf4ca3a945134 Added reboot notice Added a reboot notice and made table rows more distinguishable by alternating their background color. This improves usability. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi index 9699b38087..8480dad06b 100644 --- a/html/cgi-bin/zoneconf.cgi +++ b/html/cgi-bin/zoneconf.cgi @@ -53,6 +53,10 @@ my $css = <"; +my $slightlygrey = ""; + foreach (@nics) { my $mac = $_->[0]; my $nic = $_->[1]; @@ -376,7 +387,7 @@ foreach (@nics) { $checked = "checked"; } - print ""; + print ""; next; # We're done here } } @@ -415,7 +426,7 @@ foreach (@nics) { my $vlan_disabled = ($wlan) ? "disabled" : ""; print < + diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index af61b82bc6..fc87196508 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -2894,6 +2894,7 @@ 'zoneconf val vlan amount assignment error' => 'Pro Zone kann nur ein VLAN verwendet werden.', 'zoneconf val vlan tag assignment error' => 'Pro Netzwerkkarte kann derselbe VLAN-Tag nur einmal verwendet werden.', 'zoneconf val zoneslave amount error' => 'Wenn eine Zone nicht im Brückenmodus ist, kann ihr nur eine Netzwerkkarte zugewiesen werden.', +'zoneconf notice reboot' => 'Bitte einen Neustart durchführen, um die Änderungen zu übernehmen.', ); #EOF diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 46fc01c26f..9d0d69df82 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -2943,6 +2943,7 @@ 'zoneconf val vlan amount assignment error' => 'A zone cannot have more than one VLAN assigned.', 'zoneconf val vlan tag assignment error' => 'You cannot use the same VLAN tag more than once per NIC.', 'zoneconf val zoneslave amount error' => 'A zone that is not in bridge mode can\'t have more than one NIC assigned', +'zoneconf notice reboot' => 'Please reboot to apply your changes.', ); #EOF