summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-20 15:35:56 +0100
committerSimon Rettberg2019-03-20 15:35:56 +0100
commitb051fb4dd78482a8d51559df09668ae2bb382113 (patch)
treed80c7e71cd6eb20def19d5ad76e56becd7415cfb /modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
parent[serversetup-bwlp-ipxe] Chainfix: Add netX/ to DHCP opts too (diff)
downloadslx-admin-b051fb4dd78482a8d51559df09668ae2bb382113.tar.gz
slx-admin-b051fb4dd78482a8d51559df09668ae2bb382113.tar.xz
slx-admin-b051fb4dd78482a8d51559df09668ae2bb382113.zip
[serversetup-bwlp-ipxe] Bootentry: add copy button & allow view only
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html20
1 files changed, 14 insertions, 6 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html b/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
index 8185ad06..edfc0e5f 100644
--- a/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
+++ b/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
@@ -12,6 +12,7 @@
<th>{{lang_hotkey}}</th>
<th class="slx-smallcol">{{lang_refCount}}</th>
<th class="slx-smallcol">{{lang_edit}}</th>
+ {{#allowEdit}}<th class="slx-smallcol">{{lang_copy}}</th>{{/allowEdit}}
<th class="slx-smallcol">{{lang_delete}}</th>
</tr>
</thead>
@@ -31,17 +32,24 @@
{{refs}}
</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>
+ <span class="glyphicon glyphicon-{{#allowEdit}}edit{{/allowEdit}}{{^allowEdit}}eye-open{{/allowEdit}}"></span>
+ </a>
+ </td>
+ {{#allowEdit}}
+ <td align="center">
+ <a href="?do=serversetup&amp;show=editbootentry&amp;id={{entryid}}&copy=true" class="btn btn-xs btn-default">
+ <span class="glyphicon glyphicon-duplicate"></span>
</a>
- {{/allowEdit}}
</td>
+ {{/allowEdit}}
<td align="center">
{{#allowEdit}}
- <button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal" onclick="deleteBootentry('{{entryid}}', '{{builtin}}')">
- <span class="glyphicon glyphicon-trash"></span>
- </button>
+ {{^builtin}}
+ <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>
+ {{/builtin}}
{{/allowEdit}}
</td>
</tr>