summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-11 18:21:07 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-11 18:21:07 +0545
commit0dbf9cbe3fe176427350efb615504115a2b6b9bb (patch)
tree805ad48a760114af021dce8af31229ededd6f1f9
parent35bc0aca0690c7875d3df440880d8527fc280894 (diff)
downloadpfsense-0dbf9cbe3fe176427350efb615504115a2b6b9bb.zip
pfsense-0dbf9cbe3fe176427350efb615504115a2b6b9bb.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.
-rw-r--r--src/usr/local/www/firewall_nat_edit.php22
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',
OpenPOWER on IntegriCloud