diff --git a/framework/control.class.php b/framework/control.class.php index 1715391310..f7b7adf73f 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -43,10 +43,10 @@ class control extends baseControl /* If the main view file doesn't exist, set the device prefix to empty and reset the main view file. */ if(!file_exists($mainViewFile)) { - $oldPrefix = $this->devicePrefix; + $originalPrefix = $this->devicePrefix; $this->devicePrefix = ''; $mainViewFile = $modulePath . 'view' . DS . $this->devicePrefix . $methodName . '.' . $viewType . '.php'; - $this->devicePrefix = $oldPrefix; + $this->devicePrefix = $originalPrefix; } $viewFile = $mainViewFile; @@ -97,11 +97,11 @@ class control extends baseControl /* If the js or css file doesn't exist, set the device prefix to empty and reset the js or css file. */ if($this->viewType == 'xhtml') { - $oldPrefix = $this->devicePrefix; + $originalPrefix = $this->devicePrefix; $this->devicePrefix = ''; $css .= $this->getCSS($moduleName, $methodName); $js .= $this->getJS($moduleName, $methodName); - $this->devicePrefix = $oldPrefix; + $this->devicePrefix = $originalPrefix; } if($css) $this->view->pageCSS = $css; if($js) $this->view->pageJS = $js; diff --git a/module/doc/control.php b/module/doc/control.php index 7f9492a930..c406cab72d 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -348,6 +348,7 @@ class doc extends control $this->view->position[] = $this->lang->doc->create; $this->view->libID = $libID; + $this->view->libs = $this->doc->getLibs($type = 'all', $extra = 'withObject'); $this->view->libName = $this->dao->findByID($libID)->from(TABLE_DOCLIB)->fetch('name'); $this->view->moduleOptionMenu = $this->tree->getOptionMenu($libID, 'doc', $startModuleID = 0); $this->view->moduleID = $moduleID; diff --git a/module/doc/css/x.create.css b/module/doc/css/x.create.css new file mode 100644 index 0000000000..b53353b4cf --- /dev/null +++ b/module/doc/css/x.create.css @@ -0,0 +1,7 @@ +body{padding:0px;} +#header{display:none;} +#header+#main{min-width:auto;} +#main{padding:0px;} +#main .container{padding:0px;} +.main-header{display:none;} +#footer{display:none;} diff --git a/module/doc/css/x.view.css b/module/doc/css/x.view.css new file mode 100644 index 0000000000..d188287b0b --- /dev/null +++ b/module/doc/css/x.view.css @@ -0,0 +1,13 @@ +#header{display:none;} +#header+#main{min-width:auto;} +#main{padding:0px;} +#main .container{padding:0px;} +.side-col.col-4{display:none;} +#mainMenu{margin-top:0px;} +#mainMenu .btn{display:none;} +#mainMenu .divider{display:none;} +.main-actions #back{display:none;} +.main-actions .divider{display:none;} +.main-actions .fullscreen-btn{display:none;} +.main-actions a[href*=delete]{display:none;} +#footer{display:none;} diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index daf1322cbd..1267bd2351 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -25,12 +25,11 @@
| testcase->stepID;?> | -testcase->stepDesc;?> | -testcase->stepExpect;?> | -
|---|---|---|
| $stepId | "; - echo "";
- if($step->type == 'item') echo "{$stepId}.{$childId}";
- echo nl2br(str_replace(' ', ' ', $step->desc)) . " | ";
- echo "" . nl2br(str_replace(' ', ' ', $step->expect)) . " | "; - echo "