From b051fb4dd78482a8d51559df09668ae2bb382113 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 20 Mar 2019 15:35:56 +0100 Subject: [serversetup-bwlp-ipxe] Bootentry: add copy button & allow view only --- .../templates/bootentry-list.html | 20 ++++++++++---- .../templates/ipxe-new-boot-entry.html | 32 +++++++++++++--------- 2 files changed, 33 insertions(+), 19 deletions(-) (limited to 'modules-available/serversetup-bwlp-ipxe/templates') 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 @@ {{lang_hotkey}} {{lang_refCount}} {{lang_edit}} + {{#allowEdit}}{{lang_copy}}{{/allowEdit}} {{lang_delete}} @@ -31,17 +32,24 @@ {{refs}} - {{#allowEdit}} - + + + + {{#allowEdit}} + + + - {{/allowEdit}} + {{/allowEdit}} {{#allowEdit}} - + {{^builtin}} + + {{/builtin}} {{/allowEdit}} diff --git a/modules-available/serversetup-bwlp-ipxe/templates/ipxe-new-boot-entry.html b/modules-available/serversetup-bwlp-ipxe/templates/ipxe-new-boot-entry.html index a6955642..c04661f2 100644 --- a/modules-available/serversetup-bwlp-ipxe/templates/ipxe-new-boot-entry.html +++ b/modules-available/serversetup-bwlp-ipxe/templates/ipxe-new-boot-entry.html @@ -1,4 +1,9 @@ +{{^oldentryid}}

{{lang_newBootEntryHead}}

+{{/oldentryid}} +{{#oldentryid}} +

{{lang_editBootEntryHead}}

+{{/oldentryid}} {{#builtin}}
@@ -18,11 +23,11 @@
- +
- +
@@ -31,13 +36,14 @@ - +
- +
@@ -45,7 +51,7 @@ - @@ -62,39 +68,39 @@ - +
- +
+ value="{{commandLine}}" {{disabled}}>
+ name="entry[replace][{{mode}}]" {{replace_checked}} {{disabled}}>
+ name="entry[autoUnload][{{mode}}]" {{autoUnload_checked}} {{disabled}}>
+ name="entry[resetConsole][{{mode}}]" {{resetConsole_checked}} {{disabled}}>
@@ -111,7 +117,7 @@ {{lang_scriptContent}} + name="entry[script]" {{disabled}}>{{entry.script}} @@ -129,7 +135,7 @@
- -- cgit v1.2.3-55-g7522