summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/serversetup-bwlp/templates')
-rw-r--r--modules-available/serversetup-bwlp/templates/bootentry-list.html12
-rw-r--r--modules-available/serversetup-bwlp/templates/ipxe-new-boot-entry.html9
-rw-r--r--modules-available/serversetup-bwlp/templates/menu-edit.html2
-rw-r--r--modules-available/serversetup-bwlp/templates/menu-list.html13
4 files changed, 31 insertions, 5 deletions
diff --git a/modules-available/serversetup-bwlp/templates/bootentry-list.html b/modules-available/serversetup-bwlp/templates/bootentry-list.html
index 929b8c47..0cf005c5 100644
--- a/modules-available/serversetup-bwlp/templates/bootentry-list.html
+++ b/modules-available/serversetup-bwlp/templates/bootentry-list.html
@@ -1,8 +1,15 @@
+<h2>{{lang_bootentryHead}}</h2>
+
+<p>
+ {{lang_bootentryIntro}}
+</p>
+
<table class="table">
<thead>
<tr>
<th>{{lang_bootentryTitle}}</th>
- <th>Hotkey</th>
+ <th>{{lang_hotkey}}</th>
+ <th class="slx-smallcol">{{lang_refCount}}</th>
<th class="slx-smallcol">{{lang_edit}}</th>
<th class="slx-smallcol">{{lang_delete}}</th>
</tr>
@@ -16,6 +23,9 @@
<td>
{{hotkey}}
</td>
+ <td align="right">
+ {{refs}}
+ </td>
<td align="center">
{{#allowEdit}}
<a href="?do=serversetup&amp;show=editbootentry&amp;id={{entryid}}" class="btn btn-xs btn-default">
diff --git a/modules-available/serversetup-bwlp/templates/ipxe-new-boot-entry.html b/modules-available/serversetup-bwlp/templates/ipxe-new-boot-entry.html
index fe496029..7e82b5cc 100644
--- a/modules-available/serversetup-bwlp/templates/ipxe-new-boot-entry.html
+++ b/modules-available/serversetup-bwlp/templates/ipxe-new-boot-entry.html
@@ -14,7 +14,7 @@
<form method="post" action="?do=serversetup">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="savebootentry">
- <input type="hidden" name="entryid" value="{{oldentryid}}">
+ <input type="hidden" name="entryid" value="{{entryid}}">
<div class="form-group">
<div class="radio">
@@ -121,6 +121,13 @@
</div>
{{/builtin}}
+ <p class="slx-bold">{{lang_referencingMenus}}:</p>
+ <ul>
+ {{#menus}}
+ <a href="?do=serversetup&amp;show=editmenu&amp;id={{menuid}}&amp;highlight={{entryid}}">{{title}}</a>
+ {{/menus}}
+ </ul>
+
<div class="buttonbar text-right">
<button type="submit" class="btn btn-primary">
<span class="glyphicon glyphicon-floppy-disk"></span>
diff --git a/modules-available/serversetup-bwlp/templates/menu-edit.html b/modules-available/serversetup-bwlp/templates/menu-edit.html
index 21c6a30e..1598a2b7 100644
--- a/modules-available/serversetup-bwlp/templates/menu-edit.html
+++ b/modules-available/serversetup-bwlp/templates/menu-edit.html
@@ -52,7 +52,7 @@
</thead>
<tbody id="table-body" style="overflow: auto;">
{{#entries}}
- <tr>
+ <tr class="{{highlight}}">
<input type="hidden" class="sort-val" name="entry[{{menuentryid}}][sortval]" value="{{sortval}}">
<input type="hidden" name="entry[{{menuentryid}}][hidden]" value="0">
<td class="drag-handler" style="cursor: pointer;text-align: center; vertical-align: middle;">
diff --git a/modules-available/serversetup-bwlp/templates/menu-list.html b/modules-available/serversetup-bwlp/templates/menu-list.html
index 67365a33..545f22a9 100644
--- a/modules-available/serversetup-bwlp/templates/menu-list.html
+++ b/modules-available/serversetup-bwlp/templates/menu-list.html
@@ -1,5 +1,9 @@
<h2>{{lang_listOfMenus}}</h2>
+<p>
+ {{lang_menuListIntro}}
+</p>
+
<table class="table">
<thead>
<tr>
@@ -17,7 +21,7 @@
{{title}}
</td>
<td class="text-right">
- {{locationCount}}
+ <span class="badge" data-toggle="tooltip" data-placement="top" title="{{locnames}}">{{locationCount}}</span>
</td>
<td align="center">
{{^isdefault}}
@@ -37,7 +41,7 @@
</td>
<td align="center">
{{#allowEdit}}
- <a href="?do=serversetup&amp;show=editmenu&amp;id={{menuid}}" class="btn btn-xs btn-primary">
+ <a href="?do=serversetup&amp;show=editmenu&amp;id={{menuid}}" class="btn btn-xs btn-default">
<span class="glyphicon glyphicon-edit"></span>
</a>
{{/allowEdit}}
@@ -60,6 +64,8 @@
</a>
</div>
+<div class="clearfix"></div>
+
<!-- Modals -->
<form method="post" action="?do=serversetup">
@@ -88,4 +94,7 @@
function deleteMenu(menuid) {
$("#delete-menu-id").val(menuid);
}
+ document.addEventListener('DOMContentLoaded', function() {
+ $('[data-toggle="tooltip"]').tooltip();
+ });
</script> \ No newline at end of file