@@ -22,21 +25,33 @@
| testcase->product;?> | +testcase->product;?> | + | |
|---|---|---|---|
| zanode->common;?> | +zanode->common;?> | node) ? $automation->node : '', "class='form-control picker-select'");?> | +|
| zanode->scriptPath;?> | ++ zanode->scriptPath;?> + | scriptPath) ? $automation->scriptPath : '', "class='form-control'");?> | +
+ |
| zanode->shell;?> | ++ zanode->shell;?> + | shell) ? $automation->shell : '', "rows='6' class='form-control'");?> | +
+ |
@@ -50,6 +65,8 @@
diff --git a/module/zahost/css/common.css b/module/zahost/css/common.css
new file mode 100644
index 0000000000..1ef909a85b
--- /dev/null
+++ b/module/zahost/css/common.css
@@ -0,0 +1 @@
+.icon-help{line-height: 34px;}
diff --git a/module/zahost/js/common.js b/module/zahost/js/common.js
index 65357a2674..b4e3efb24b 100755
--- a/module/zahost/js/common.js
+++ b/module/zahost/js/common.js
@@ -31,4 +31,6 @@ $(function()
});
$('#osCategory').change();
+
+ $('[data-toggle="popover"]').popover();
})
diff --git a/module/zahost/lang/de.php b/module/zahost/lang/de.php
index de18d2269f..6b9fd479ca 100644
--- a/module/zahost/lang/de.php
+++ b/module/zahost/lang/de.php
@@ -20,8 +20,8 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
-$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
+$lang->zahost->cpuCores = 'CPU';
$lang->zahost->diskSize = 'Disk Size';
$lang->zahost->desc = 'Description';
$lang->zahost->type = 'Type';
@@ -122,3 +122,5 @@ $lang->zahost->notice->ip = '『%s』incorrect format!';
$lang->zahost->notice->registerCommand = 'Register command: ./zagent-host -t host -s http://%s:%s -i %s -p 8086 -secret %s';
$lang->zahost->notice->loading = 'loading...';
$lang->zahost->notice->noImage = 'No available image';
+
+$lang->zahost->tips = 'Host include physical host, k8s clusters, cloud servers, and cloud container instances. Host used to create VMS or container instances. The recommended host OS is ubuntu or CentOS LTS.';
diff --git a/module/zahost/lang/en.php b/module/zahost/lang/en.php
index de18d2269f..6b9fd479ca 100644
--- a/module/zahost/lang/en.php
+++ b/module/zahost/lang/en.php
@@ -20,8 +20,8 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
-$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
+$lang->zahost->cpuCores = 'CPU';
$lang->zahost->diskSize = 'Disk Size';
$lang->zahost->desc = 'Description';
$lang->zahost->type = 'Type';
@@ -122,3 +122,5 @@ $lang->zahost->notice->ip = '『%s』incorrect format!';
$lang->zahost->notice->registerCommand = 'Register command: ./zagent-host -t host -s http://%s:%s -i %s -p 8086 -secret %s';
$lang->zahost->notice->loading = 'loading...';
$lang->zahost->notice->noImage = 'No available image';
+
+$lang->zahost->tips = 'Host include physical host, k8s clusters, cloud servers, and cloud container instances. Host used to create VMS or container instances. The recommended host OS is ubuntu or CentOS LTS.';
diff --git a/module/zahost/lang/fr.php b/module/zahost/lang/fr.php
index 4518f7627c..55acee78a9 100644
--- a/module/zahost/lang/fr.php
+++ b/module/zahost/lang/fr.php
@@ -20,8 +20,8 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
-$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
+$lang->zahost->cpuCores = 'CPU';
$lang->zahost->diskSize = 'diskSize Size';
$lang->zahost->desc = 'Description';
$lang->zahost->type = 'Type';
@@ -122,3 +122,5 @@ $lang->zahost->notice->ip = '『%s』incorrect format!';
$lang->zahost->notice->registerCommand = 'Register command: ./zagent-host -t host -s http://%s:%s -i %s -p 8086 -secret %s';
$lang->zahost->notice->loading = 'loading...';
$lang->zahost->notice->noImage = 'No available image';
+
+$lang->zahost->tips = 'Host include physical host, k8s clusters, cloud servers, and cloud container instances. Host used to create VMS or container instances. The recommended host OS is ubuntu or CentOS LTS.';
diff --git a/module/zahost/lang/zh-cn.php b/module/zahost/lang/zh-cn.php
index d3d39dbb0e..1cc873532c 100644
--- a/module/zahost/lang/zh-cn.php
+++ b/module/zahost/lang/zh-cn.php
@@ -122,3 +122,5 @@ $lang->zahost->notice->ip = '『%s』格式不正确!';
$lang->zahost->notice->registerCommand = '宿主机注册命令:./zagent-host -t host -s http://%s:%s -i %s -p 8086 -secret %s';
$lang->zahost->notice->loading = '加载中...';
$lang->zahost->notice->noImage = '无可用的镜像文件';
+
+$lang->zahost->tips = '宿主机包括实体主机、k8s集群、云服务器以及云容器实例,主要用于创建虚拟机或容器实例。宿主机推荐安装的操作系统为ubuntu或CentOS的LTS版本。';
diff --git a/module/zahost/view/create.html.php b/module/zahost/view/create.html.php
index b86d20a5fa..85e9f5e1c9 100644
--- a/module/zahost/view/create.html.php
+++ b/module/zahost/view/create.html.php
@@ -17,6 +17,7 @@
zahost->create;?>+ | |||