From 5c9dcd194ffe38b7009e0955ea6f029f15e93966 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 24 Jan 2017 17:46:20 +0545 Subject: Required fields for firewall*.php (cherry picked from commit 8a1b5c561f93611b711eb4e7b58ccb4990577d8e) --- src/usr/local/www/firewall_rules_edit.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/usr/local/www/firewall_rules_edit.php') diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 9c385d4..43c60fd 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1190,7 +1190,7 @@ if ($if == "FloatingRules" || isset($pconfig['floating'])) { $section->addInput(new Form_Select( 'type', - 'Action', + '*Action', $pconfig['type'], $values ))->setHelp('Choose what to do with packets that match the criteria specified '. @@ -1256,7 +1256,7 @@ if ($edit_disabled) { if ($if == "FloatingRules" || isset($pconfig['floating'])) { $section->addInput($input = new Form_Select( 'interface', - 'Interface', + '*Interface', $pconfig['interface'], build_if_list(), true @@ -1264,7 +1264,7 @@ if ($if == "FloatingRules" || isset($pconfig['floating'])) { } else { $section->addInput($input = new Form_Select( 'interface', - 'Interface', + '*Interface', $pconfig['interface'], build_if_list() ))->setHelp('Choose the interface from which packets must come to match this rule.'); @@ -1273,7 +1273,7 @@ if ($if == "FloatingRules" || isset($pconfig['floating'])) { if ($if == "FloatingRules" || isset($pconfig['floating'])) { $section->addInput(new Form_Select( 'direction', - 'Direction', + '*Direction', $pconfig['direction'], array( 'any' => gettext('any'), @@ -1292,7 +1292,7 @@ if ($if == "FloatingRules" || isset($pconfig['floating'])) { $section->addInput(new Form_Select( 'ipprotocol', - 'Address Family', + '*Address Family', $pconfig['ipprotocol'], array( 'inet' => 'IPv4', @@ -1303,7 +1303,7 @@ $section->addInput(new Form_Select( $section->addInput(new Form_Select( 'proto', - 'Protocol', + '*Protocol', $pconfig['proto'], array( 'any' => gettext('Any'), @@ -1343,7 +1343,7 @@ $form->add($section); foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { $section = new Form_Section($name); - $group = new Form_Group($name); + $group = new Form_Group('*' . $name); $group->add(new Form_Checkbox( $type .'not', $name .' not', -- cgit v1.1