From d10a3a96e0538b8347472d6c2d350dc2bee86501 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 Sep 2019 15:25:32 +0200 Subject: [serversetup-bwlp-ipxe] --- .../templates/bootentry-list.html | 16 ++-- .../templates/ipxe-new-boot-entry.html | 89 +++++++++++++++++++--- .../serversetup-bwlp-ipxe/templates/menu-edit.html | 4 +- 3 files changed, 93 insertions(+), 16 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 dfc4e6a8..9eecc6f5 100644 --- a/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html +++ b/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html @@ -11,20 +11,24 @@ {{lang_entryId}} + {{lang_bootentryType}} {{lang_bootentryTitle}} - {{lang_hotkey}} - {{lang_refCount}} - {{lang_edit}} - {{#allowEdit}}{{lang_copy}}{{/allowEdit}} - {{lang_delete}} + {{lang_hotkey}} + {{lang_refCount}} + {{lang_edit}} + {{#allowEdit}}{{lang_copy}}{{/allowEdit}} + {{lang_delete}} {{#bootentryTable}} - + {{entryid}} + + {{module}} + {{title}} 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 b195394d..fd76c1d5 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 @@ -23,13 +23,19 @@
- +
- +
+ {{#hooks}} +
+ + +
+ {{/hooks}}
@@ -68,42 +74,77 @@ - +
- +
-
+

{{lang_ipxeSettings}}

+
+
+ + +
+
+ name="entry[{{mode}}][replace]" {{replace_checked}} {{disabled}}>
+ name="entry[{{mode}}][autoUnload]" {{autoUnload_checked}} {{disabled}}>
+ name="entry[{{mode}}][resetConsole]" {{resetConsole_checked}} {{disabled}}>
+

{{lang_dhcpOverrides}}

+ {{#opts}} +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+ {{/opts}} @@ -121,6 +162,23 @@ + {{#hooks}} +
+ +
+ +
+
+ {{/hooks}} + {{#builtin}}
{{lang_editBuiltinWarn}} @@ -148,7 +206,8 @@ document.addEventListener('DOMContentLoaded', function () { $('.type-radio').click(function () { $('.type-form').hide(); - $('#form-' + $(this).val()).show(); + var name = $(this).val().replace('.', ''); + $('#form-' + name).show(); }); $('.type-radio[checked]').click(); var $as = $('#arch-selector'); @@ -167,5 +226,17 @@ document.addEventListener('DOMContentLoaded', function () { $('#col-' + vs[i]).attr('class', 'mode-class col-md-' + cols).show(); } }).change(); + var colorize = function() { + var $t = $(this); + $t.css('color', ($t.data('hex') && !$t.val().match(/^[a-f0-9]*$/i)) ? 'red' : ''); + }; + var setHex = function() { + var n = '#' + this.id.replace(/-hex$/, '-value'); + var $obj = $(n); + $obj.data('hex', this.checked); + colorize.call($obj[0]); + }; + $('.hex-box').change(setHex).each(setHex); + $('.hex-value').change(colorize).keyup(colorize).each(colorize); }); // --> \ No newline at end of file diff --git a/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html b/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html index 358aa4d6..d2fa12be 100644 --- a/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html +++ b/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html @@ -150,10 +150,12 @@
{{/script}} {{^script}} + {{#arch}}
-
{{arch}}
+
{{.}}
+ {{/arch}} {{#archAgnostic}}
-- cgit v1.2.3-55-g7522