summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index c91b1a8..ca4a68f 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -613,10 +613,16 @@ include("head.inc");
<tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Interface");?></td>
<td width="78%" class="vtable">
-<?php if ($if == "FloatingRules" || isset($pconfig['floating'])): ?>
- <select name="interface[]" multiple="true" class="formselect" size="3">
+<?php $disabled = "";
+ if (isset($pconfig['associated-rule-id'])) {
+ $disabled = "disabled";
+ if (!empty($pconfig['interface']))
+ echo "<input name='interface' id='interface' type='hidden' value='{$pconfig['interface']}' >";
+ }
+ if ($if == "FloatingRules" || isset($pconfig['floating'])): ?>
+ <select name="interface[]" multiple="true" class="formselect" size="3" <?=$disabled;?>>
<? else: ?>
- <select name="interface" class="formselect">
+ <select name="interface" class="formselect" <?=$disabled;?>>
<?php
endif;
/* add group interfaces */
OpenPOWER on IntegriCloud