summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-23 14:57:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-23 14:57:07 +0000
commit4a91019eb583e3136dc543555fc055db324c405b (patch)
tree6f8916889201f8f841109255bda13a95eaf817b1 /usr
parent58131cda3b44d1c0346129c1d1342a44a7d7d57e (diff)
downloadpfsense-4a91019eb583e3136dc543555fc055db324c405b.zip
pfsense-4a91019eb583e3136dc543555fc055db324c405b.tar.gz
Allow additional entries to be inserted into the interfaces selection widget.
The first usage of this will be with carpdev.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 018c2ba..b2b7509 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -351,6 +351,11 @@ if ($pkg['tabs'] <> "") {
$fieldname .= "[]";
}
echo "<select name='" . $fieldname . "'" . $size . $multiple . ">\n";
+ if($pkga['add_to_interfaces_selection'] <> "") {
+ $SELECTED = "";
+ if($pkga['add_to_interfaces_selection'] == $value) $SELECTED = " SELECTED";
+ echo "<option value='" . $pkga['add_to_interfaces_selection'] . "'" . $SELECTED . ">" . $pkga['add_to_interfaces_selection'] . "</option>\n";
+ }
foreach ($config['interfaces'] as $ifname => $iface) {
if ($iface['descr'])
$ifdescr = $iface['descr'];
OpenPOWER on IntegriCloud