diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-10 00:37:28 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-03-10 00:37:28 -0800 |
commit | b1b8784a0746fd08ba07f11025f3ae1c32030416 (patch) | |
tree | cdcda8d4df33a5b9000e4ed7d5c26b01b4fce526 /src/usr | |
parent | 05e539afbad4e79143ddf499c5f827db63471d22 (diff) | |
download | pfsense-b1b8784a0746fd08ba07f11025f3ae1c32030416.zip pfsense-b1b8784a0746fd08ba07f11025f3ae1c32030416.tar.gz |
Status Monitoring - Settings Panel Collapsible
Make the status monitoring settings panel collapsible with page load state configurable in general setup associated panels show/hide.
Replace Update button with refresh icon on title bar.
Required by FreeBSD-Ports pull request #78 Status Monitoring - Settings Panel Collapsible.
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/bootstrap/css/pfSense.css | 1 | ||||
-rw-r--r-- | src/usr/local/www/head.inc | 16 | ||||
-rw-r--r-- | src/usr/local/www/system.php | 11 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/usr/local/www/bootstrap/css/pfSense.css b/src/usr/local/www/bootstrap/css/pfSense.css index c6a03a8..1ef1990 100644 --- a/src/usr/local/www/bootstrap/css/pfSense.css +++ b/src/usr/local/www/bootstrap/css/pfSense.css @@ -793,6 +793,7 @@ a[href]:after { #widget-available_panel-body>.content>.row, #filter-panel_panel-body>.form-group, #manage-log-panel_panel-body>.form-group, +#monitoring-settings-panel_panel-body>.form-group, /** optionally prevent more globally by using the class hierarchy */ .panel-body.collapse.in>.content>.row, .panel-body.collapse.in>.form-group diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index cabe37d..432810a 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -544,6 +544,22 @@ if (($pagename === "index.php") && ($numColumns > 2)) { endif ?> + <?php if ($monitoring_settings_form_hidden): ?> + <li> + <a onclick="$('#monitoring-settings-form').toggle(360);" title="<?=gettext("Settings")?>"> + <i class="fa fa-wrench icon-pointer"></i> + </a> + </li> + <?php endif?> + + <?php if ($status_monitoring): ?> + <li> + <a id="update" title="<?=gettext("Refresh Graph")?>"> + <i class="fa fa-repeat icon-pointer"></i> + </a> + </li> + <?php endif?> + <?php if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service']) && isAllowedPage('status_services.php')) { $ssvc = array(); diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 884ab4c..5e5a44c 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -96,6 +96,7 @@ $pconfig['webguileftcolumnhyper'] = isset($config['system']['webgui']['webguilef $pconfig['dashboardavailablewidgetspanel'] = isset($config['system']['webgui']['dashboardavailablewidgetspanel']); $pconfig['systemlogsfilterpanel'] = isset($config['system']['webgui']['systemlogsfilterpanel']); $pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['systemlogsmanagelogpanel']); +$pconfig['statusmonitoringsettingspanel'] = isset($config['system']['webgui']['statusmonitoringsettingspanel']); $pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); if (!$pconfig['timezone']) { @@ -253,6 +254,9 @@ if ($_POST) { unset($config['system']['webgui']['systemlogsmanagelogpanel']); $config['system']['webgui']['systemlogsmanagelogpanel'] = $_POST['systemlogsmanagelogpanel'] ? true : false; + unset($config['system']['webgui']['statusmonitoringsettingspanel']); + $config['system']['webgui']['statusmonitoringsettingspanel'] = $_POST['statusmonitoringsettingspanel'] ? 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']); @@ -547,6 +551,13 @@ $group->add(new Form_Checkbox( $pconfig['systemlogsmanagelogpanel'] ))->setHelp('Show the Manage Log panel in System Logs.'); +$group->add(new Form_Checkbox( + 'statusmonitoringsettingspanel', + null, + 'Monitoring Settings', + $pconfig['statusmonitoringsettingspanel'] +))->setHelp('Show the Settings panel in Status Monitoring.'); + $group->setHelp('These options allow certain panels to be automatically hidden on page load. A control is provided in the title bar to un-hide the panel. <br /><span class="badge" title="This feature is in BETA">BETA</span>'); |