diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-11 16:03:28 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-11 16:04:26 -0400 |
commit | 784b435bce55034ab407cd51552d57d379300a53 (patch) | |
tree | bbec2727553457cba938a54440ee763e04f15b2b /src/usr/local/www/firewall_rules_edit.php | |
parent | c38aad85f745ee20450923c28818642b8d1f7f2d (diff) | |
download | pfsense-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_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 306fb36..5263af6 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1283,7 +1283,7 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { $type, $name .' Address', $pconfig[$type] - ))->addMask($type .'mask', $pconfig[$type.'mask']); + ))->addMask($type .'mask', $pconfig[$type.'mask'])->setPattern('[0-9, a-z, A-Z and .'); $section->add($group); @@ -1313,10 +1313,9 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { $group->add(new Form_Input( $type .'beginport_cust', null,//$name .' port begin custom', - 'number', - (isset($portValues[ $pconfig[$type .'beginport'] ]) ? null : $pconfig[$type .'beginport']), - ['min' => 1, 'max' => 65535] - ))->setHelp('Custom');; + 'text', + (isset($portValues[ $pconfig[$type .'beginport'] ]) ? null : $pconfig[$type .'beginport']) + ))->setHelp('Custom'); $group->add(new Form_Select( $type .'endport', @@ -1328,9 +1327,8 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { $group->add(new Form_Input( $type .'endport_cust', null,//$name .' port end custom', - 'number', - (isset($portValues[ $pconfig[$type .'endport'] ]) ? null : $pconfig[$type .'endport']), - ['min' => 1, 'max' => 65535] + 'text', + (isset($portValues[ $pconfig[$type .'endport'] ]) ? null : $pconfig[$type .'endport']) ))->setHelp('Custom'); |