@@ -27,6 +28,7 @@ testcase->precondition;?>
case->precondition);?> + testcase->stepID;?> testcase->stepDesc;?> @@ -34,7 +36,9 @@ testcase->result;?> testcase->real;?> + + case->steps)) { @@ -81,6 +85,7 @@ + view->title = $this->lang->zahost->create; $this->view->notice = $this->lang->zahost->initNotice; - $this->view->buttonName = $this->lang->zahost->initTitle; + $this->view->buttonName = $this->lang->zahost->init->title; + $this->view->closeLink = $this->createLink('zahost', 'browse'); $this->display(); } @@ -117,7 +118,7 @@ class zahost extends control if($_POST) { $changes = $this->zahost->update($hostID); - if(dao::isError()) + if(dao::isError()) { return $this->send(array('result' => 'fail', 'message' => dao::getError())); } @@ -329,13 +330,14 @@ class zahost extends control { $imageList = $this->zahost->getImagePairs($hostID); - $this->view->title = $this->lang->zahost->initTitle; + $this->view->title = $this->lang->zahost->init->title; $this->view->users = $this->loadModel('user')->getPairs('noletter|nodeleted'); $this->view->hostID = $hostID; $this->view->host = $this->zahost->getById($hostID); $this->view->notice = $imageList ? $this->lang->zahost->createZanodeNotice : $this->lang->zahost->downloadImageNotice; $this->view->buttonName = $imageList ? $this->lang->zahost->createZanode : $this->lang->zahost->image->downloadImage; $this->view->modalLink = $imageList ? $this->createLink('zanode', 'create', "hostID=$hostID") : $this->createLink('zahost', 'browseImage', "hostID=$hostID"); + $this->view->closeLink = $this->createLink('zahost', 'browse'); $this->display(); } diff --git a/module/zahost/css/common.css b/module/zahost/css/common.css deleted file mode 100644 index 6f18896c39..0000000000 --- a/module/zahost/css/common.css +++ /dev/null @@ -1,7 +0,0 @@ -#modalLink{color: #2e7fff;text-decoration: underline;} -.modal-dialog .modal-content{border: 2px solid #75e5c4; background-color: #f1fcf9; border-radius: 4px;} -.icon-check-circle{color: #17ce97; margin-right: 10px; font-size: 20px;} -.modal-dialog{width: fit-content;} -.modal-dialog{border-radius: 4px;} -.modal-header{padding:9px 15px 0px; margin:0px; border-bottom:0;} -.modal-dialog .modal-body{padding: 5px 15px 20px 15px;} diff --git a/module/zahost/js/common.js b/module/zahost/js/common.js index 58462cdc7d..65357a2674 100755 --- a/module/zahost/js/common.js +++ b/module/zahost/js/common.js @@ -32,9 +32,3 @@ $(function() $('#osCategory').change(); }) - -function showModal(url = '') -{ - if(url) $("#modalLink").attr('href', url); - $('#successModal').modal('show', 'center'); -} diff --git a/module/zahost/lang/zh-cn.php b/module/zahost/lang/zh-cn.php index efa5a6e82b..e4361fef79 100644 --- a/module/zahost/lang/zh-cn.php +++ b/module/zahost/lang/zh-cn.php @@ -37,11 +37,7 @@ $lang->zahost->os = '操作系统'; $lang->zahost->imageName = '镜像文件'; $lang->zahost->createZanode = '创建执行节点'; -<<<<<<< HEAD -$lang->zahost->initNotice = '保存成功,请您初始化宿主机或返回列表。'; -======= $lang->zahost->initNotice = '保存成功,请您初始化宿主机或返回列表。'; ->>>>>>> zenops_46_zhaoke_77683 $lang->zahost->createZanodeNotice = '初始化成功,您现在可以创建执行节点了。'; $lang->zahost->downloadImageNotice = '初始化成功,请下载镜像用于创建执行节点。'; $lang->zahost->undeletedNotice = "宿主机下存在执行节点无法删除。"; diff --git a/module/zahost/view/create.html.php b/module/zahost/view/create.html.php index 0cede66734..cf1e531811 100644 --- a/module/zahost/view/create.html.php +++ b/module/zahost/view/create.html.php @@ -78,5 +78,5 @@