summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/interfaces_lagg_edit.php1
-rw-r--r--src/usr/local/www/pkg_edit.php17
2 files changed, 17 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_lagg_edit.php b/src/usr/local/www/interfaces_lagg_edit.php
index 7fc2319..19fe84a 100644
--- a/src/usr/local/www/interfaces_lagg_edit.php
+++ b/src/usr/local/www/interfaces_lagg_edit.php
@@ -246,6 +246,7 @@ if ($input_errors) {
print_input_errors($input_errors);
}
+print_r(build_member_list());
$form = new Form();
$section = new Form_Section('LAGG Configuration');
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php
index 57e51ef..f525cff 100644
--- a/src/usr/local/www/pkg_edit.php
+++ b/src/usr/local/www/pkg_edit.php
@@ -666,6 +666,9 @@ $js_array = array();
// Now loop through all of the fields defined in the XML
foreach ($pkg['fields']['field'] as $pkga) {
+ $action = "";
+ $uid = "";
+
if ($pkga['type'] == "sorting") {
continue;
}
@@ -684,7 +687,19 @@ foreach ($pkg['fields']['field'] as $pkga) {
$form->add($section);
}
- $section = new Form_Section(strip_tags($pkga['name']));
+ if (isset($pkga['collapse'])) {
+ $uid = uniqid("section");
+
+ $action = COLLAPSIBLE;
+
+ if ($pkga['collapse'] == "open") {
+ $action |= SEC_OPEN;
+ } else {
+ $action |= SEC_CLOSED;
+ }
+ }
+
+ $section = new Form_Section(strip_tags($pkga['name']), $uid, $action);
}
continue;
OpenPOWER on IntegriCloud