diff options
author | Phil Davis <phil.davis@inf.org> | 2015-11-11 18:21:07 +0545 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-11 07:49:53 -0500 |
commit | 9a3b6f7fdda6057d3f3614223c0bb42ecd38be7a (patch) | |
tree | 725c2c9a71209f1c86a697b50143fe918c613076 /src/usr/local/www/firewall_nat_edit.php | |
parent | 889f9ee0f3e9cec7e11b19c2be6ee65c50a36ecc (diff) | |
download | pfsense-9a3b6f7fdda6057d3f3614223c0bb42ecd38be7a.zip pfsense-9a3b6f7fdda6057d3f3614223c0bb42ecd38be7a.tar.gz |
Fix #5411 firewall_nat_edit source negation
And make the "not" checkboxes have the same layout as in firewall_rules_edit. That seems a better place to put the checkbox and consistency between similar GUI screens seems a good thing.
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_edit.php | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php index d693086..cd28d86 100644 --- a/src/usr/local/www/firewall_nat_edit.php +++ b/src/usr/local/www/firewall_nat_edit.php @@ -695,6 +695,13 @@ $section->addInput(new Form_Select( $group = new Form_Group('Source'); +$group->add(new Form_Checkbox( + 'srcnot', + 'Source not', + 'Invert match.', + $pconfig['srcnot'] +))->setWidth(2); + $group->add(new Form_Select( 'srctype', null, @@ -756,6 +763,13 @@ $section->add($group); $group = new Form_Group('Destination'); +$group->add(new Form_Checkbox( + 'dstnot', + 'Destination not', + 'Invert match.', + $pconfig['dstnot'] +))->setWidth(2); + $group->add(new Form_Select( 'dsttype', null, @@ -809,14 +823,6 @@ $group->setHelp('Specify the port or port range for the destination of the packe $section->add($group); -$section->addInput(new Form_Checkbox( - 'dstnot', - null, - 'Not (Invert the sense of the match)', - $pconfig['dstnot'], - 'yes' -)); - $section->addInput(new Form_IpAddress( 'localip', 'Redirect target IP', |