summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/page.inc.php
diff options
context:
space:
mode:
authorUdo Walter2018-10-04 03:19:44 +0200
committerUdo Walter2018-10-04 03:19:44 +0200
commit2f3f7ba4844ca4acff33569f3fa46ccf6301c92f (patch)
tree3a16b281224d5cb23b25795a762a486b5c347e52 /modules-available/serversetup-bwlp/page.inc.php
parent[serversetup-bwlp] Don't allow recompilation if already in progress (diff)
downloadslx-admin-2f3f7ba4844ca4acff33569f3fa46ccf6301c92f.tar.gz
slx-admin-2f3f7ba4844ca4acff33569f3fa46ccf6301c92f.tar.xz
slx-admin-2f3f7ba4844ca4acff33569f3fa46ccf6301c92f.zip
[serversetup-bwlp] bootmenu-edit UI improvements
- add cancel button - add checkbox to hide menu entries - add button to remove menu entries - hide input fields not relevant for spacers - add modal to select an entry that shows some information about the selected entry
Diffstat (limited to 'modules-available/serversetup-bwlp/page.inc.php')
-rw-r--r--modules-available/serversetup-bwlp/page.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp/page.inc.php b/modules-available/serversetup-bwlp/page.inc.php
index 4ebb7530..615bac64 100644
--- a/modules-available/serversetup-bwlp/page.inc.php
+++ b/modules-available/serversetup-bwlp/page.inc.php
@@ -261,7 +261,11 @@ class Page_ServerSetup extends Page
$menu['entries'] = Database::queryAll("SELECT menuentryid, entryid, hotkey, title, hidden, sortval, plainpass FROM
serversetup_menuentry WHERE menuid = :id ORDER BY sortval ASC", compact('id'));
$menu['keys'] = array_map(function ($item) { return ['key' => $item]; }, MenuEntry::getKeyList());
- $menu['entrylist'] = Database::queryAll("SELECT entryid, title, hotkey FROM serversetup_bootentry ORDER BY title ASC");
+ $menu['entrylist'] = Database::queryAll("SELECT entryid, title, hotkey, data FROM serversetup_bootentry ORDER BY title ASC");
+ foreach ($menu['entrylist'] as &$bootentry) {
+ $bootentry['json'] = $bootentry['data'];
+ $bootentry['data'] = json_decode($bootentry['data']);
+ }
foreach ($menu['entries'] as &$entry) {
$entry['isdefault'] = ($entry['menuentryid'] == $menu['defaultentryid']);
// TODO: plainpass only when permissions