Console settings: move help text from inline to helptext file

This commit is contained in:
bergware
2023-11-16 11:30:27 +01:00
parent 3e74f3ecb4
commit d38f83c3c2
2 changed files with 23 additions and 11 deletions
+20
View File
@@ -2440,3 +2440,23 @@ Any 3rd party driver installed by a plugin will have a support symbol next to it
Click the edit button to add/modify/delete any modprobe.d config file in the config/modprobe.d directory on the flash drive.
:end
:console_keyboard_help:
Select your default keymap for the local console (not the web Terminal).
:end
:console_screen_help:
**Default:** 'Default' will set the blank timeout to 15 minutes and powersave to 60 minutes.
**Disabled:** 'Disabled' will disable the blank and powersave timeout.
**All other values:** Will set the blank timout to the selected value and disable the powersave timeout.
:end
:console_bash_help:
If set to 'Yes' the bash history will persist reboots, set to 'No' to disable.
**ATTENTION:** The bash history will be written to the USB Boot device so this will introduce higher wear and tear!
**Note:** Disabling and Enabling will remove the entire bash history.
:end
+3 -11
View File
@@ -76,9 +76,7 @@ _(Local keyboard layout)_:
<?foreach ($keymaps as $keymap => $text) echo mk_option($console['keyboard_layout'], $keymap, $text, (!isset($console['keyboard_layout']) && $keymap == 'us' ? 'selected' : ''))?>
</select>
<blockquote class="inline_help">
<p>Select your default keymap for the local console (not the web Terminal).<br/></p>
</blockquote>
:console_keyboard_help:
_(Local screen blank time)_:
: <select name="screen_blank" class="narrow">
@@ -87,11 +85,7 @@ _(Local screen blank time)_:
<?php foreach ($minutes as $minute) echo mk_option($console['screen_blank'], $minute, $minute, ($console['screen_blank'] == $minute) ? 'selected' : ''); ?>
</select> _(minutes)_
<blockquote class="inline_help">
<p><b>Default:</b> 'Default' will set the blank timeout to 15 minutes and powersave to 60 minutes.<br/>
<b>Disabled:</b> 'Disabled' will disable the blank and powersave timeout.<br/>
<b>All other values:</b> Will set the blank timout to the selected value and disable the powersave timeout.</p>
</blockquote>
:console_screen_help:
_(Persistent Bash History)_:
: <select name="persist_bash_history" class="narrow">
@@ -99,9 +93,7 @@ _(Persistent Bash History)_:
<?=mk_option($console['persist_bash_history'], "1", _('Enabled'))?>
</select>
<blockquote class="inline_help">
<p>If set to 'Yes' the bash history will persist reboots, set to 'No' to disable.<br/><b>ATTENTION:</b> The bash history will be written to the USB Boot device so this will introduce higher wear and tear!<br/><b>Note:</b> Disabling and Enabling will remove the entire bash history.</p>
</blockquote>
:console_bash_help:
&nbsp;
: <input type="submit" name="#apply" value="_(Apply)_" disabled><input type="button" value="_(Done)_" onclick="done()">