[Kimchi-devel] [PATCH] [Kimchi] For s390x hide Netboot template for Virtualization Add Template
rajgupta at linux.vnet.ibm.com
rajgupta at linux.vnet.ibm.com
Tue Sep 27 11:07:51 UTC 2016
From: Rajat Gupta <rajgupta at linux.vnet.ibm.com>
For s390x hide Netboot template for Virtualization Add Template
Signed-off-by: Rajat Gupta <rajgupta at linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_add_main.js | 5 +++++
ui/pages/template-add.html.tmpl | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/kimchi.template_add_main.js b/ui/js/src/kimchi.template_add_main.js
index aa76fcc..d6bfb7c 100644
--- a/ui/js/src/kimchi.template_add_main.js
+++ b/ui/js/src/kimchi.template_add_main.js
@@ -23,6 +23,7 @@ kimchi.template_add_main = function() {
var isos = [];
var local_isos = [];
var remote_isos = [];
+ var s390xArch = 's390x';
var deepScan = function(button) {
kimchi.deepScanHandler = kimchi.stepListDeepScanIsos(function(isos, isFinished) {
@@ -470,6 +471,10 @@ kimchi.template_add_main = function() {
}
}
};
+
+ if(kimchi.hostarch === s390xArch){
+ $('#template-add-window .netboot-template').hide();
+ }
};
kimchi.template_check_url = function(url) {
diff --git a/ui/pages/template-add.html.tmpl b/ui/pages/template-add.html.tmpl
index a5136f0..4028f90 100644
--- a/ui/pages/template-add.html.tmpl
+++ b/ui/pages/template-add.html.tmpl
@@ -34,8 +34,8 @@
<h5>$_("Where is the source media for this template? ")</h5>
<input type="radio" checked="checked" name="iso-source" id="image-src" value="image-src" class="wok-radio">
<label for="image-src">$_("Image Template")</label>
- <input type="radio" name="iso-source" id="netboot-src" value="netboot-src" class="wok-radio">
- <label for="netboot-src">$_("Netboot Template")</label>
+ <input type="radio" name="iso-source" id="netboot-src" value="netboot-src" class="wok-radio netboot-template">
+ <label for="netboot-src" class="netboot-template">$_("Netboot Template")</label>
</div>
</div>
<div class="template-pager">
--
2.1.0
More information about the Kimchi-devel
mailing list