summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/templates
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-08 16:13:49 +0100
committerSimon Rettberg2019-03-08 16:13:49 +0100
commitf535295c86bc029da86582fe6a1ba3f96d64a1da (patch)
tree3d3f56a522595b965b1608baa1b70f5ccbec5eed /modules-available/serversetup-bwlp-ipxe/templates
parent[serversetup-bwlp-ipxe] Improve legacy PXELinux import (diff)
downloadslx-admin-f535295c86bc029da86582fe6a1ba3f96d64a1da.tar.gz
slx-admin-f535295c86bc029da86582fe6a1ba3f96d64a1da.tar.xz
slx-admin-f535295c86bc029da86582fe6a1ba3f96d64a1da.zip
[serversetup-bwlp-ipxe] Fix bugs, add import feature
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/templates')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/templates/menu-list.html4
-rw-r--r--modules-available/serversetup-bwlp-ipxe/templates/page-import.html32
2 files changed, 34 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/templates/menu-list.html b/modules-available/serversetup-bwlp-ipxe/templates/menu-list.html
index 545f22a9..ed12e596 100644
--- a/modules-available/serversetup-bwlp-ipxe/templates/menu-list.html
+++ b/modules-available/serversetup-bwlp-ipxe/templates/menu-list.html
@@ -47,11 +47,11 @@
{{/allowEdit}}
</td>
<td align="center">
- {{#allowDelete}}
+ {{#allowEdit}}
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal" onclick="deleteMenu('{{menuid}}')">
<span class="glyphicon glyphicon-trash"></span>
</button>
- {{/allowDelete}}
+ {{/allowEdit}}
</td>
</tr>
{{/menuTable}}
diff --git a/modules-available/serversetup-bwlp-ipxe/templates/page-import.html b/modules-available/serversetup-bwlp-ipxe/templates/page-import.html
new file mode 100644
index 00000000..62a24325
--- /dev/null
+++ b/modules-available/serversetup-bwlp-ipxe/templates/page-import.html
@@ -0,0 +1,32 @@
+<h2>{{lang_pxelinuxImport}}</h2>
+
+<p>
+ {{lang_pxelinuxImportIntro}}
+</p>
+
+<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="position:absolute;top:-2000px" tabindex="-1">
+<input type="password" name="password_fake" id="password_fake" value="" style="position:absolute;top:-2000px" tabindex="-1">
+
+<div class="panel panel-default">
+ <div class="panel-heading">
+ {{lang_pxelinuxImport}}
+ </div>
+ <div class="panel-body">
+ <form method="post" action="?do=serversetup">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="import">
+ <label for="pxemenu">{{lang_pxeMenuContent}}</label>
+ <textarea id="pxemenu" class="form-control" name="pxemenu" rows="25"></textarea>
+ <div class="checkbox">
+ <input type="checkbox" id="entries-only" name="entries-only" value="1">
+ <label for="entries-only">{{lang_pxelinuxEntriesOnly}}</label>
+ </div>
+ <div class="text-right">
+ <button class="btn btn-primary" type="submit">
+ <span class="glyphicon glyphicon-import"></span>
+ {{lang_import}}
+ </button>
+ </div>
+ </form>
+ </div>
+</div> \ No newline at end of file