diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-11 10:44:46 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-11 10:46:45 -0500 |
commit | 4a6272bea5a2ec265b642c3ddc96280a03d07f45 (patch) | |
tree | 5e886ee354158fd44d3e970f43d630be9a44575d /src/usr/local | |
parent | d7ac2a6d933bfb2cd2ff949a1619d04080423ac5 (diff) | |
download | pfsense-4a6272bea5a2ec265b642c3ddc96280a03d07f45.zip pfsense-4a6272bea5a2ec265b642c3ddc96280a03d07f45.tar.gz |
Added support for <collapse> tags in listtopic fields. e.g.:
<collapse>closed</collapse> // Creates a panel that is collapsible and iniatially closed
<collapse>open</collapse> // Creates a panel that is collapsible and iniatially open
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/interfaces_lagg_edit.php | 1 | ||||
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 17 |
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; |