From: Michael Tremer Date: Fri, 25 Oct 2013 09:40:06 +0000 (+0200) Subject: firewall: Fix layout of protocol selection. X-Git-Tag: v2.15-beta1~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=901aa8b943e6442e4b3540a73fe7c79c9a9cd419;p=people%2Fms%2Fipfire-2.x.git firewall: Fix layout of protocol selection. --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 84c007425d..802b2bed34 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1730,17 +1730,25 @@ END print"
"; &Header::closebox; #---PROTOCOL------------------------------------------------------ + $fwdfwsettings{'SRC_PORT'} =~ s/\|/,/g; + $fwdfwsettings{'TGT_PORT'} =~ s/\|/,/g; + $fwdfwsettings{'dnatport'} =~ tr/|/,/; + + # The dnatport may be empty, if it matches TGT_PORT + if ($fwdfwsettings{'dnatport'} eq $fwdfwsettings{'TGT_PORT'}) { + $fwdfwsettings{'dnatport'} = ""; + } + &Header::openbox('100%', 'left', $Lang::tr{'fwhost prot'}); #Fix Protocol for JQuery if ($fwdfwsettings{'grp3'} eq 'cust_srv' || $fwdfwsettings{'grp3'} eq 'cust_srvgrp'){ $fwdfwsettings{'PROT'} = 'template'; } print< - +
- - -
- +
- - -
- - - - + +
$Lang::tr{'fwhost icmptype'} - + + + + - -
$Lang::tr{'fwhost icmptype'} +
- + +
+ + + + + + + + + + + + + + + + + + +
+ $Lang::tr{'fwdfw use srcport'} + + + + + $Lang::tr{'fwdfw use srv'} + + +
$Lang::tr{'fwdfw external port nat'}: + +
+ + + + +
+ + $Lang::tr{'fwhost cust service'} + + - - - - - - - - - - - - - - - - -
- $Lang::tr{'fwdfw use srcport'} - - - - - $Lang::tr{'fwdfw use srv'} - - -
$Lang::tr{'fwdfw external port nat'}: - -
- - -
- - - - - - - - + + + + + +
- - $Lang::tr{'fwhost cust service'} - -
- - $Lang::tr{'fwhost cust srvgrp'} - -
+ + $Lang::tr{'fwhost cust srvgrp'} + + +
-
- -


END &Header::closebox;