diff options
author | Colin Fleming <cj_fleming@sky.com> | 2015-12-19 22:29:14 +0000 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2015-12-19 22:29:14 +0000 |
commit | b77cef66ac057d84804c60e9df9cf5c4561c0465 (patch) | |
tree | 210446baacf5dc2790560df2f887b43627bbabb7 /src/usr/local/www/widgets | |
parent | 72eaefaf1fc991d5949daadbac5ae50ed1d3ad5f (diff) | |
download | pfsense-b77cef66ac057d84804c60e9df9cf5c4561c0465.zip pfsense-b77cef66ac057d84804c60e9df9cf5c4561c0465.tar.gz |
Use Bootstraps text alignment classes
As per "http://getbootstrap.com/css/#type-alignment", use CLASS
statement instead in inline STYLE statement (much tidier)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/thermal_sensors.widget.php | 28 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/wake_on_lan.widget.php | 8 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php index 522dcd3..dabf983 100644 --- a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php +++ b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php @@ -195,15 +195,15 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { <form action="/widgets/widgets/thermal_sensors.widget.php" method="post" id="iform_thermal_sensors_settings" name="iform_thermal_sensors_settings"> <table> <tr> - <td style="text-align:left" colspan="2"> - <span style="font-weight: bold" >Thresholds in °C (1 to 100):</span> + <td class="text-left" colspan="2"> + <strong>Thresholds in °C (1 to 100):</strong> </td> - <td style="text-align:right" colspan="1"> - <span style="font-weight: bold" >Display settings:</span> + <td class="text-right" colspan="1"> + <strong>Display settings:</strong> </td> </tr> <tr> - <td style="text-align:right"> + <td class="text-right"> Zone Warning: </td> <td> @@ -212,7 +212,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { id="thermal_sensors_widget_zone_warning_threshold" value="<?= $thermal_sensors_widget_zoneWarningTempThreshold; ?>" /> </td> - <td style="text-align:right"> + <td class="text-right"> <label for="thermal_sensors_widget_show_raw_output">Show raw output (no graph): </label> <input type="checkbox" id="thermal_sensors_widget_show_raw_output" @@ -221,7 +221,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { </td> </tr> <tr> - <td style="text-align:right"> + <td class="text-right"> Zone Critical: </td> <td> @@ -230,7 +230,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { id="thermal_sensors_widget_zone_critical_threshold" value="<?= $thermal_sensors_widget_zoneCriticalTempThreshold; ?>" /> </td> - <td style="text-align:right"> + <td class="text-right"> <label for="thermal_sensors_widget_show_full_sensor_name">Show full sensor name: </label> <input type="checkbox" id="thermal_sensors_widget_show_full_sensor_name" @@ -239,7 +239,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { </td> </tr> <tr> - <td style="text-align:right"> + <td class="text-right"> Core Warning: </td> <td> @@ -248,12 +248,12 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { id="thermal_sensors_widget_core_warning_threshold" value="<?= $thermal_sensors_widget_coreWarningTempThreshold ?>" /> </td> - <td style="text-align:right"> + <td class="text-right"> </td> </tr> <tr> - <td style="text-align:right"> + <td class="text-right"> Core Critical: </td> <td> @@ -262,17 +262,17 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { id="thermal_sensors_widget_core_critical_threshold" value="<?= $thermal_sensors_widget_coreCriticalTempThreshold ?>" /> </td> - <td style="text-align:right"> + <td class="text-right"> </td> </tr> <tr> - <td style="text-align:right" colspan="3"> + <td class="text-right" colspan="3"> <input type="submit" id="thermal_sensors_widget_submit" name="thermal_sensors_widget_submit" class="formbtn" value="Save" /> </td> </tr> <tr> - <td style="text-align:left" colspan="3"> + <td class="text-left" colspan="3"> <span>* You can configure a proper Thermal Sensor / Module under <br /> <a href="system_advanced_misc.php">System > Advanced > Miscellaneous : Thermal Sensors section</a>.</span> </td> diff --git a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php index b087bd9..164e7ce 100644 --- a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -90,10 +90,10 @@ if (count($wolcomputers) > 0) { if ($status == 'expires') { echo '<i class="fa fa-arrow-right" data-toggle="tooltip" title="' . gettext("Online") . '"></i>'; } else if ($status == 'permanent') { - echo '<td style="text-align:center">' . "\n"; + echo '<td class="text-center">' . "\n"; echo '<i class="fa fa-arrow-right" data-toggle="tooltip" title="' . gettext("Static ARP") . '"></i>'; } else { - echo '<td" style="text-align:center">' . "\n"; + echo '<td" class="text-center">' . "\n"; echo '<i class="fa fa-ban" data-toggle="tooltip" title="' . gettext("Offline") . '"></i>'; } @@ -103,10 +103,10 @@ if (count($wolcomputers) > 0) { echo "</td></tr>\n"; } } else { - echo "<tr><td colspan=\"4\" style=\"text-align:center\">" . gettext("No saved WoL addresses") . ".</td></tr>\n"; + echo "<tr><td colspan=\"4\" class=\"text-center\">" . gettext("No saved WoL addresses") . ".</td></tr>\n"; } ?> </tbody> </table> -<p style="text-align:center"><a href="status_dhcp_leases.php" class="navlink">DHCP Leases Status</a></p> +<p class="text-center"><a href="status_dhcp_leases.php" class="navlink">DHCP Leases Status</a></p> </div> |