Hello Leo, This looks like a very clean set of patches. Well done. I haven’t tested it, but I have seen the previous version in action. It really looks good. Best, -Michael Reviewed-by: Michael Tremer > On 17 Nov 2020, at 06:29, Leo-Andres Hofmann wrote: > > This adds missing brackets, cleans up the indentation and removes unnecessary CSS. > > Signed-off-by: Leo-Andres Hofmann > --- > html/cgi-bin/zoneconf.cgi | 46 +++++++++++++++++++-------------------- > 1 file changed, 22 insertions(+), 24 deletions(-) > > diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi > index d99a3e611..067410582 100644 > --- a/html/cgi-bin/zoneconf.cgi > +++ b/html/cgi-bin/zoneconf.cgi > @@ -38,10 +38,6 @@ my $css = < height: 4em; > } > > - tr.thin { > - height: 3em; > - } > - > td.narrow { > width: 11em; > } > @@ -85,10 +81,6 @@ my $css = < border-left-style: none; > } > > - td.disabled { > - background-color: #cccccc; > - } > - > td.textcenter { > text-align: center; > } > @@ -312,8 +304,8 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) { > print <
> > - > - > + > END > ; > > @@ -332,7 +324,7 @@ foreach (@zones) { > my $red_restricted = ($uc eq "RED" && ! ($red_type eq "STATIC" || $red_type eq "DHCP")); > > if ($red_restricted) { > - print ""; > + print "\t\t\n"; > > next; # We're done here > } > @@ -350,7 +342,7 @@ foreach (@zones) { > } > > print < - "; > +print "\t\n"; > > my $slightlygrey = ""; > > @@ -370,7 +362,8 @@ foreach (@nics) { > my $nic = $_->[1]; > my $wlan = $_->[2]; > > - print ""; > + print "\t\n"; > + print "\t\t\n"; > > # Iterate through all zones and check if the current NIC is assigned to it > foreach (@zones) { > @@ -393,7 +386,12 @@ foreach (@nics) { > $checked = "checked"; > } > > - print ""; > + print < + > +END > +; > next; # We're done here > } > } > @@ -432,19 +430,19 @@ foreach (@nics) { > my $vlan_disabled = ($wlan) ? "disabled" : ""; > > print < - > + > END > ; > } > > - print ""; > + print "\t\n"; > > if ($slightlygrey) { > $slightlygrey = ""; > -- > 2.27.0.windows.1 >
> +
$uc ($red_type)$uc ($red_type)$uc
> +
$uc
>
$nic
$mac
$nic
$mac
> + > + > - > - > - > + > + > +