diff options
author | Ermal <eri@pfsense.org> | 2010-08-03 17:54:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-03 17:54:23 +0000 |
commit | 0f0fff153a72e49de1a5aea8e2b5a23750dbdce8 (patch) | |
tree | bd9432afcb4f2a47125f06d45cb8c307b4ae6d28 /usr/local/www | |
parent | 6441fa9a5f8fa303469822aa3e79b863de1ab9c5 (diff) | |
download | pfsense-0f0fff153a72e49de1a5aea8e2b5a23750dbdce8.zip pfsense-0f0fff153a72e49de1a5aea8e2b5a23750dbdce8.tar.gz |
Ticket #780. Disable the interface selection on associated nat rules.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 12 |
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 */ |