summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-20 06:22:16 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-20 06:22:16 -0800
commitc05363c8ca124772f7d36efde711af27a3d9f898 (patch)
tree83a6a513624c9d51b34dd648d147c9d28b26f7e5 /src/usr/local/www/system.php
parent62a4f54c37166414e9e62d2d484ec4e5f76a92d2 (diff)
downloadpfsense-c05363c8ca124772f7d36efde711af27a3d9f898.zip
pfsense-c05363c8ca124772f7d36efde711af27a3d9f898.tar.gz
Special Panels - Show/Hide
Add configuration option to show or hide special panels. When a panel is hidden a button is displayed on the page title bar to toggle the panel display.
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 7c56b93..b6f4dd9 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -93,6 +93,9 @@ $pconfig['webguicss'] = $config['system']['webgui']['webguicss'];
$pconfig['webguifixedmenu'] = $config['system']['webgui']['webguifixedmenu'];
$pconfig['dashboardcolumns'] = $config['system']['webgui']['dashboardcolumns'];
$pconfig['webguileftcolumnhyper'] = isset($config['system']['webgui']['webguileftcolumnhyper']);
+$pconfig['dashboardavailablewidgetspanel'] = isset($config['system']['webgui']['dashboardavailablewidgetspanel']);
+$pconfig['systemlogsfilterpanel'] = isset($config['system']['webgui']['systemlogsfilterpanel']);
+$pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['systemlogsmanagelogpanel']);
$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
if (!$pconfig['timezone']) {
@@ -235,6 +238,15 @@ if ($_POST) {
unset($config['system']['webgui']['webguileftcolumnhyper']);
$config['system']['webgui']['webguileftcolumnhyper'] = $_POST['webguileftcolumnhyper'] ? true : false;
+ unset($config['system']['webgui']['dashboardavailablewidgetspanel']);
+ $config['system']['webgui']['dashboardavailablewidgetspanel'] = $_POST['dashboardavailablewidgetspanel'] ? true : false;
+
+ unset($config['system']['webgui']['systemlogsfilterpanel']);
+ $config['system']['webgui']['systemlogsfilterpanel'] = $_POST['systemlogsfilterpanel'] ? true : false;
+
+ unset($config['system']['webgui']['systemlogsmanagelogpanel']);
+ $config['system']['webgui']['systemlogsmanagelogpanel'] = $_POST['systemlogsmanagelogpanel'] ? true : false;
+
/* XXX - billm: these still need updating after figuring out how to check if they actually changed */
$olddnsservers = $config['system']['dnsserver'];
unset($config['system']['dnsserver']);
@@ -506,6 +518,34 @@ $section->addInput(new Form_Input(
[min => 1, max => 4]
))->setHelp('<span class="badge" title="This feature is in BETA">BETA</span>');
+$group = new Form_Group('Special Panels Show/Hide');
+
+$group->add(new Form_Checkbox(
+ 'dashboardavailablewidgetspanel',
+ null,
+ 'Available Widgets',
+ $pconfig['dashboardavailablewidgetspanel']
+ ))->setHelp('Show the Available Widgets panel on the Dashboard.');
+
+$group->add(new Form_Checkbox(
+ 'systemlogsfilterpanel',
+ null,
+ 'Log Filter',
+ $pconfig['systemlogsfilterpanel']
+))->setHelp('Show the Log Filter panel in System Logs.');
+
+$group->add(new Form_Checkbox(
+ 'systemlogsmanagelogpanel',
+ null,
+ 'Manage Logs',
+ $pconfig['systemlogsmanagelogpanel']
+))->setHelp('Show the Manage Log panel in System Logs.');
+
+$group->setHelp('These options set which special panels to show or hide. When a panel is hidden a button to show/hide the panel is displayed in the title bar.
+<br /><span class="badge" title="This feature is in BETA">BETA</span>');
+
+$section->add($group);
+
$section->addInput(new Form_Checkbox(
'webguileftcolumnhyper',
'Left Column Labels',
OpenPOWER on IntegriCloud