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/ipxe-new-boot-entry.html | 89 +++++++++++++++++++---
1 file changed, 80 insertions(+), 9 deletions(-)
(limited to 'modules-available/serversetup-bwlp-ipxe/templates/ipxe-new-boot-entry.html')
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 @@
@@ -68,42 +74,77 @@
-
+
-
+
-
+ {{lang_ipxeSettings}}
+
+ {{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
--
cgit v1.2.3-55-g7522