diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-03 12:57:03 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-03-03 12:57:03 +0545 |
commit | 47aa60f9711902978096ced6ee26e87adef337f3 (patch) | |
tree | f0479279c9d27116a63121799a398d3565067a68 /usr/local/www/system_advanced_misc.php | |
parent | ebfb1d0bbcc7697ac1302ef82d1203898134e27e (diff) | |
download | pfsense-47aa60f9711902978096ced6ee26e87adef337f3.zip pfsense-47aa60f9711902978096ced6ee26e87adef337f3.tar.gz |
Make the Power Mode selection boxes line up
by putting the text and selection boxes into a 2-column table so that it can be rendered with the boxes lined up vertically.
Diffstat (limited to 'usr/local/www/system_advanced_misc.php')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 58 |
1 files changed, 35 insertions, 23 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index bafd30f..6d927df 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -389,30 +389,42 @@ function tmpvar_checked(obj) { <input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked=\"checked\""; ?> /> <strong><?=gettext("Use PowerD"); ?></strong><br /> <br /> - <?=gettext("On AC Power Mode"); ?> : - <select name="powerd_ac_mode" id="powerd_ac_mode"> - <option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> - <br /> - <?=gettext("On Battery Power Mode"); ?> : - <select name="powerd_battery_mode" id="powerd_battery_mode"> - <option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> + <table border="0" cellspacing="0" cellpadding="2" summary="powerd"> + <tr> + <td><?=gettext("On AC Power Mode:");?> </td> + <td> + <select name="powerd_ac_mode" id="powerd_ac_mode"> + <option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + <tr> + <td><?=gettext("On Battery Power Mode:");?> </td> + <td> + <select name="powerd_battery_mode" id="powerd_battery_mode"> + <option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + <tr> + <td><?=gettext("On Unknown Power Mode:");?> </td> + <td> + <select name="powerd_normal_mode" id="powerd_normal_mode"> + <option value="hadp"<?php if($pconfig['powerd_normal_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_normal_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_normal_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_normal_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + </table> <br /> - <?=gettext("On Unknown Power Mode"); ?> : - <select name="powerd_normal_mode" id="powerd_normal_mode"> - <option value="hadp"<?php if($pconfig['powerd_normal_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_normal_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_normal_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_normal_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> - <br /><br /> <?=gettext("The powerd utility monitors the system state and sets various power control " . "options accordingly. It offers four modes (maximum, minimum, adaptive " . "and hiadaptive) that can be individually selected while on AC power or batteries. " . |