mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
checkbox for option to display Fahrenheit
This commit is contained in:
parent
bea1ef6412
commit
b8810db7fb
@ -119,6 +119,7 @@ if ($_POST['widgetkey']) {
|
||||
saveGraphDisplaySettings($user_settings, $_POST, "thermal_sensors_widget_show_full_sensor_name");
|
||||
saveGraphDisplaySettings($user_settings, $_POST, "thermal_sensors_widget_pulsate_warning");
|
||||
saveGraphDisplaySettings($user_settings, $_POST, "thermal_sensors_widget_pulsate_critical");
|
||||
saveGraphDisplaySettings($user_settings, $_POST, "thermal_sensors_widget_show_fahrenheit");
|
||||
|
||||
//write settings to config file
|
||||
save_widget_settings($_SESSION['Username'], $user_settings["widgets"], gettext("Saved thermal_sensors_widget settings via Dashboard."));
|
||||
@ -139,6 +140,7 @@ $thermal_sensors_widget_showRawOutput = getBoolValueFromConfig($user_settings, "
|
||||
$thermal_sensors_widget_showFullSensorName = getBoolValueFromConfig($user_settings, "thermal_sensors_widget_show_full_sensor_name", false, $widgetkey);
|
||||
$thermal_sensors_widget_pulsateWarning = getBoolValueFromConfig($user_settings, "thermal_sensors_widget_pulsate_warning", true, $widgetkey);
|
||||
$thermal_sensors_widget_pulsateCritical = getBoolValueFromConfig($user_settings, "thermal_sensors_widget_pulsate_critical", true, $widgetkey);
|
||||
$thermal_sensors_widget_showFahrenheit = getBoolValueFromConfig($user_settings, "thermal_sensors_widget_show_fahrenheit", false, $widgetkey);
|
||||
|
||||
//=========================================================================
|
||||
?>
|
||||
@ -157,6 +159,8 @@ $thermal_sensors_widget_pulsateCritical = getBoolValueFromConfig($user_settings,
|
||||
showFullSensorName:<?= $thermal_sensors_widget_showFullSensorName ? "true" : "false"; ?>,
|
||||
pulsateWarning:<?= $thermal_sensors_widget_pulsateWarning ? "true" : "false"; ?>,
|
||||
pulsateCritical:<?= $thermal_sensors_widget_pulsateCritical ? "true" : "false"; ?>
|
||||
showFahrenheit:<?= $thermal_sensors_widget_showFahrenheit ? "true" : "false"; ?>
|
||||
|
||||
};
|
||||
|
||||
// --------------------- Centralized widget refresh system ------------------------------
|
||||
@ -257,6 +261,15 @@ $thermal_sensors_widget_pulsateCritical = getBoolValueFromConfig($user_settings,
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="thermal_sensors_widget_show_full_sensor_name" class="col-sm-4 control-label"><?=gettext('Show temperature in Fahrenheit')?></label>
|
||||
<div class="col-sm-6 checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="thermal_sensors_widget_show_full_sensor_name" id="thermal_sensors_widget_show_fahrenheit" value="<?= $thermal_sensors_widget_showFahrenheit; ?>" <?= ($thermal_sensors_widget_showFahrenheit) ? " checked" : ""; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-6">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-save icon-embed-btn"></i><?=gettext('Save')?></button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user