* Set hidden status in pages.
This commit is contained in:
@@ -230,7 +230,6 @@ class testtask extends control
|
||||
$this->view->build = $build;
|
||||
$this->view->stories = $stories;
|
||||
$this->view->bugs = $bugs;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -499,8 +498,6 @@ class testtask extends control
|
||||
*/
|
||||
public function start($taskID)
|
||||
{
|
||||
$actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->testtask->start($taskID);
|
||||
@@ -529,7 +526,8 @@ class testtask extends control
|
||||
$this->view->title = $testtask->name . $this->lang->colon . $this->lang->testtask->start;
|
||||
$this->view->position[] = $this->lang->testtask->common;
|
||||
$this->view->position[] = $this->lang->testtask->start;
|
||||
$this->view->actions = $actions;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('nodeleted', $testtask->owner);
|
||||
$this->view->actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -542,8 +540,6 @@ class testtask extends control
|
||||
*/
|
||||
public function activate($taskID)
|
||||
{
|
||||
$actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->testtask->activate($taskID);
|
||||
@@ -572,7 +568,8 @@ class testtask extends control
|
||||
$this->view->title = $testtask->name . $this->lang->colon . $this->lang->testtask->start;
|
||||
$this->view->position[] = $this->lang->testtask->common;
|
||||
$this->view->position[] = $this->lang->testtask->activate;
|
||||
$this->view->actions = $actions;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('nodeleted', $testtask->owner);
|
||||
$this->view->actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -585,8 +582,6 @@ class testtask extends control
|
||||
*/
|
||||
public function close($taskID)
|
||||
{
|
||||
$actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->testtask->close($taskID);
|
||||
@@ -615,7 +610,7 @@ class testtask extends control
|
||||
$this->view->title = $testtask->name . $this->lang->colon . $this->lang->close;
|
||||
$this->view->position[] = $this->lang->testtask->common;
|
||||
$this->view->position[] = $this->lang->close;
|
||||
$this->view->actions = $actions;
|
||||
$this->view->actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted|qdfirst');
|
||||
$this->view->contactLists = $this->user->getContactLists($this->app->user->account, 'withnote');
|
||||
$this->display();
|
||||
@@ -630,8 +625,6 @@ class testtask extends control
|
||||
*/
|
||||
public function block($taskID)
|
||||
{
|
||||
$actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->testtask->block($taskID);
|
||||
@@ -660,7 +653,8 @@ class testtask extends control
|
||||
$this->view->title = $testtask->name . $this->lang->colon . $this->lang->testtask->start;
|
||||
$this->view->position[] = $this->lang->testtask->common;
|
||||
$this->view->position[] = $this->lang->testtask->block;
|
||||
$this->view->actions = $actions;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('nodeleted', $testtask->owner);
|
||||
$this->view->actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,11 @@
|
||||
</div>
|
||||
<form class='load-indicator main-form' method='post' id='activateForm'>
|
||||
<table class='table table-form'>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=1');?>
|
||||
<tr class='hide'>
|
||||
<th class='w-45px'><?php echo $lang->testtask->status;?></th>
|
||||
<td><?php echo html::hidden('status', 'doing');?></td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields($testtask, 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<th class='w-45px'><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
</div>
|
||||
<form class='load-indicator main-form' method='post' id='blockForm'>
|
||||
<table class='table table-form'>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=1');?>
|
||||
<tr class='hide'>
|
||||
<th class='w-45px'><?php echo $lang->testtask->status;?></th>
|
||||
<td><?php echo html::hidden('status', 'blocked');?></td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields($testtask, 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<th class='w-45px'><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
|
||||
|
||||
@@ -23,7 +23,11 @@
|
||||
</div>
|
||||
<form class='load-indicator main-form' method='post' id='closeForm'>
|
||||
<table class='table table-form'>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=1');?>
|
||||
<tr class='hide'>
|
||||
<th class='w-60px'><?php echo $lang->testtask->status;?></th>
|
||||
<td><?php echo html::hidden('status', 'done');?></td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields($testtask, 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<th class='w-60px'><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields('', 'table', 'columns=2');?>
|
||||
<?php $this->printExtendFields('', 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<td class='text-center form-actions' colspan='3'>
|
||||
<?php echo html::submitButton();?>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=2');?>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<td class='text-center form-actions' colspan='3'>
|
||||
<?php echo html::submitButton();?>
|
||||
|
||||
@@ -25,7 +25,11 @@
|
||||
</div>
|
||||
<form class='load-indicator main-form' method='post' id='startForm'>
|
||||
<table class='table table-form'>
|
||||
<?php $this->printExtendFields($task, 'table', 'columns=1');?>
|
||||
<tr class='hide'>
|
||||
<th class='w-45px'><?php echo $lang->testtask->status;?></th>
|
||||
<td><?php echo html::hidden('status', 'doing');?></td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields($testtask, 'table', 'columns=1');?>
|
||||
<tr>
|
||||
<th class='w-45px'><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?></td>
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->printExtendFields($task, 'div', "position=right&divCell=true");?>
|
||||
<?php $this->printExtendFields($task, 'div', "position=right&mode=value");?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user