summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-11 16:03:28 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-11 16:04:26 -0400
commit784b435bce55034ab407cd51552d57d379300a53 (patch)
treebbec2727553457cba938a54440ee763e04f15b2b /src/usr/local/www/firewall_nat_out_edit.php
parentc38aad85f745ee20450923c28818642b8d1f7f2d (diff)
downloadpfsense-784b435bce55034ab407cd51552d57d379300a53.zip
pfsense-784b435bce55034ab407cd51552d57d379300a53.tar.gz
Revised all pages with autocomplete to accommodate host names in validation and change port inputs to 'text'
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index d7e8309..7b149db 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -517,14 +517,13 @@ $group->add(new Form_IpAddress(
'source',
null,
$pconfig['source']
-))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.');
+))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.')->setPattern('[0-9, a-z, A-Z and .');
$group->add(new Form_Input(
'sourceport',
null,
- 'number',
- $pconfig['sourceport'],
- ['min' => '1', 'max' => '65536']
+ 'text',
+ $pconfig['sourceport']
))->setHelp('Port')->setWidth('2');
$section->add($group);
@@ -542,14 +541,13 @@ $group->add(new Form_IpAddress(
'destination',
null,
$pconfig['destination'] == "any" ? "":$pconfig['destination']
-))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.');
+))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.')->setPattern('[0-9, a-z, A-Z and .');
$group->add(new Form_Input(
'dstport',
null,
- 'number',
- $pconfig['dstport'],
- ['min' => '1', 'max' => '65536']
+ 'text',
+ $pconfig['dstport']
))->setHelp('Port')->setWidth('2');
$section->add($group);
@@ -848,7 +846,7 @@ events.push(function(){
var addressarray = <?= json_encode(get_alias_list(array("host", "network", "openvpn", "urltable"))) ?>;
var customarray = <?= json_encode(get_alias_list(array("port", "url_ports", "urltable_ports"))) ?>;
- $('#localip, #source').autocomplete({
+ $('#destination, #source').autocomplete({
source: addressarray
});
OpenPOWER on IntegriCloud