summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/templates/bootentry-list.html
diff options
context:
space:
mode:
authorChristian Hofmaier2018-07-24 15:36:48 +0200
committerChristian Hofmaier2018-07-24 15:36:48 +0200
commit60b1fc7329725612fb5e6289295c5efd0f31f36d (patch)
tree04ca772c475aa78ed6675cb5880f65f594f7cbc5 /modules-available/serversetup-bwlp/templates/bootentry-list.html
parent[ipxe] added add-menu-button, added delete-menu-buttons, fixed bug that timeo... (diff)
downloadslx-admin-60b1fc7329725612fb5e6289295c5efd0f31f36d.tar.gz
slx-admin-60b1fc7329725612fb5e6289295c5efd0f31f36d.tar.xz
slx-admin-60b1fc7329725612fb5e6289295c5efd0f31f36d.zip
[ipxe] Add Bootentry list
Bootentry list with add/edit/delete functionality
Diffstat (limited to 'modules-available/serversetup-bwlp/templates/bootentry-list.html')
-rw-r--r--modules-available/serversetup-bwlp/templates/bootentry-list.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp/templates/bootentry-list.html b/modules-available/serversetup-bwlp/templates/bootentry-list.html
new file mode 100644
index 00000000..f9e881b2
--- /dev/null
+++ b/modules-available/serversetup-bwlp/templates/bootentry-list.html
@@ -0,0 +1,71 @@
+<table class="table">
+ <thead>
+ <tr>
+ <th>{{lang_bootentryTitle}}</th>
+ <th>Hotkey</th>
+ <th class="slx-smallcol">{{lang_edit}}</th>
+ <th class="slx-smallcol">{{lang_delete}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#bootentryTable}}
+ <tr>
+ <td>
+ {{title}}
+ </td>
+ <td>
+ {{hotkey}}
+ </td>
+ <td align="center">
+ {{#allowEdit}}
+ <a href="?do=serversetup&amp;show=editbootentry&amp;id={{entryid}}" class="btn btn-xs btn-default">
+ <span class="glyphicon glyphicon-edit"></span>
+ </a>
+ {{/allowEdit}}
+ </td>
+ <td align="center">
+ {{#allowDelete}}
+ <button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal" onclick="deleteBootentry('{{entryid}}')">
+ <span class="glyphicon glyphicon-trash"></span>
+ </button>
+ {{/allowDelete}}
+ </td>
+ </tr>
+ {{/bootentryTable}}
+ </tbody>
+</table>
+<div class="pull-right">
+ <a href="?do=serversetup&amp;show=editbootentry" class="btn btn-success {{allowAdd}}">
+ <span class="glyphicon glyphicon-plus"></span>
+ {{lang_addBootentry}}
+ </a>
+</div>
+
+<!-- Modals -->
+<form method="post" action="?do=serversetup">
+ <input type="hidden" name="token" value="{{token}}">
+ <div class ="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+ <h4 class="modal-title" id="myModalLabel">{{lang_delete}}</h4>
+ </div>
+ <div class="modal-body">
+ <p>{{lang_bootentryDeleteConfirm}}</p>
+ </div>
+ <div class="modal-footer">
+ <input type="hidden" id="delete-bootentry-id" name="deleteid" value="">
+ <button type="button" class="btn btn-default" data-dismiss="modal">{{lang_cancel}}</button>
+ <button type="submit" name="action" value="deleteBootentry" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> {{lang_delete}}</button>
+ </div>
+ </div>
+ </div>
+ </div>
+</form>
+
+<script>
+ function deleteBootentry(entryid) {
+ $("#delete-bootentry-id").val(entryid);
+ }
+</script> \ No newline at end of file