Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
.table-footer .table-actions{width:auto;visibility:visible;opacity:1;white-space: nowrap;}
|
||||
.table-footer .table-actions{width:auto;visibility:visible;opacity:1;}
|
||||
.table-footer .table-actions .text{line-height:28px;}
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
<td class='c-name' style='color: <?php echo $bug->color?>' title='<?php echo $bug->title?>'><?php echo $bug->title?></td>
|
||||
<td class='c-status' title='<?php echo zget($lang->bug->statusList, $bug->status)?>'>
|
||||
<span class="status-<?php echo $bug->status?>">
|
||||
<span class="label label-dot hide-in-sm"></span>
|
||||
<span class='status-text'><?php echo zget($lang->bug->statusList, $bug->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -19,11 +19,8 @@
|
||||
.block-cases.block-sm .c-status{text-align:center}
|
||||
.block-cases.block-sm .c-status .status-text{display:none;}
|
||||
.case-status-normal {color: #a6aab8;}
|
||||
.case-status-normal > .label-dot {background-color: #006af1;}
|
||||
.case-status-blocked { color: #a6aab8; }
|
||||
.case-status-blocked > .label-dot { background-color: #00da88; }
|
||||
.case-status-investigate {color: #a6aab8;}
|
||||
.case-status-investigate > .label-dot {background-color: #006af1;}
|
||||
</style>
|
||||
<table class='table table-borderless table-hover table-fixed-head tablesorter block-cases <?php if(!$longBlock) echo 'block-sm';?>'>
|
||||
<thead>
|
||||
@@ -58,7 +55,6 @@
|
||||
<?php endif;?>
|
||||
<td class='c-status' title='<?php echo zget($lang->testcase->statusList, $case->status)?>'>
|
||||
<span class="case-status-<?php echo $case->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->testcase->statusList, $case->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -60,6 +60,9 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po
|
||||
.block-statistic.block-sm .nav-secondary > li > a:before {display: none;}
|
||||
.block-statistic.block-sm .nav-secondary > li.switch-icon {width: 40px;}
|
||||
.block-statistic.block-sm .types-line > li > div {padding: 18px 2px 5px;}
|
||||
|
||||
#unexpired-plan, #doing-project{margin-left:-12px}
|
||||
#unexpired-plan + span, #doing-project + span, #total-release + span{color:#000;font-weight:bold}
|
||||
</style>
|
||||
<script>
|
||||
<?php $blockNavId = 'nav-' . uniqid(); ?>
|
||||
@@ -128,10 +131,10 @@ $(function()
|
||||
<?php endif;?>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->story->planAB;?></span> / <span><?php echo $lang->productplan->featureBar['browse']['unexpired'];?></span>
|
||||
<span id='unexpired-plan'><?php echo $lang->productplan->featureBar['browse']['unexpired'];?></span> : <span><?php echo $unexpiredPlan;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $totalPlan;?></small> / <strong><?php echo $unexpiredPlan;?></strong>
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->story->planAB;?></span> : <span><?php echo $totalPlan;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,10 +159,10 @@ $(function()
|
||||
<?php endif;?>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->projectCommon;?></span> / <span><?php echo $lang->project->statusList['doing'];?></span>
|
||||
<span id='doing-project'><?php echo $lang->project->statusList['doing'];?></span> : <span><?php echo $doingProject;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $totalProject;?></small> / <strong><?php echo $doingProject;?></strong>
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->projectCommon;?></span> : <span><?php echo $totalProject;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -183,10 +186,10 @@ $(function()
|
||||
<?php endif;?>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->release->common;?></span> / <span><?php echo $lang->release->statusList['normal'];?></span>
|
||||
<span id='total-release'><?php echo $lang->release->common;?></span> : <span><?php echo $totalRelease;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $totalRelease;?></small> / <strong><?php echo $normalRelease;?></strong>
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->release->statusList['normal'];?></span> : <span><?php echo $normalRelease;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
<?php if($longBlock):?>
|
||||
<td class="c-status">
|
||||
<?php if(isset($project->delay)):?>
|
||||
<span class="status-delayed"><span class="label label-dot"></span> <?php echo $lang->project->delayed;?></span>
|
||||
<span class="status-delayed"><?php echo $lang->project->delayed;?></span>
|
||||
<?php else:?>
|
||||
<span class="status-<?php echo $project->status?>"><span class="label label-dot"></span> <?php echo zget($lang->project->statusList, $project->status, '');?></span>
|
||||
<span class="status-<?php echo $project->status?>"><?php echo zget($lang->project->statusList, $project->status, '');?></span>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<td class="c-hours"><?php echo $project->hours->totalEstimate;?></td>
|
||||
|
||||
@@ -46,6 +46,9 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po
|
||||
.block-statistic.block-sm .nav-secondary > li > a {padding: 5px 10px; border-radius: 4px;}
|
||||
.block-statistic.block-sm .nav-secondary > li > a:before {display: none;}
|
||||
.block-statistic.block-sm .nav-secondary > li.switch-icon {width: 40px;}
|
||||
|
||||
#all-bug{margin-left:11px}
|
||||
#undone-task, #unclosed-story, #active-bug{color:#000;font-weight:bold}
|
||||
</style>
|
||||
<script>
|
||||
<?php $blockNavId = 'nav-' . uniqid(); ?>
|
||||
@@ -108,10 +111,10 @@ $(function()
|
||||
</div>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->task->allTasks;?></span> <?php echo DS;?> <span><?php echo $lang->task->noFinished;?></span>
|
||||
<span><?php echo $lang->task->noFinished;?></span> : <span id='undone-task'><?php echo $project->undoneTasks;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $project->totalTasks;?></small> <?php echo DS;?> <strong><?php echo $project->undoneTasks;?></strong>
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->task->allTasks;?></span> : <span><?php echo $project->totalTasks;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,10 +125,10 @@ $(function()
|
||||
</div>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->story->total;?></span> <?php echo DS;?> <span><?php echo $lang->story->unclosed;?></span>
|
||||
<span><?php echo $lang->story->unclosed;?></span> : <span id='unclosed-story'><?php echo $project->unclosedStories;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $project->totalStories;?></small> <?php echo DS;?> <strong><?php echo $project->unclosedStories;?></strong>
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->story->total;?></span> : <span><?php echo $project->totalStories;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -137,10 +140,10 @@ $(function()
|
||||
</div>
|
||||
<div class="type-info">
|
||||
<div class="type-label">
|
||||
<span><?php echo $lang->bug->allBugs;?></span> <?php echo DS;?> <span><?php echo $lang->bug->unResolved;?></span>
|
||||
<span><?php echo $lang->bug->unResolved;?></span> : <span id='active-bug'><?php echo $project->activeBugs;?></span>
|
||||
</div>
|
||||
<div class="type-value">
|
||||
<small><?php echo $project->totalBugs;?></small> <?php echo DS;?> <strong><?php echo $project->activeBugs;?></strong>
|
||||
<div class="type-label">
|
||||
<span id='all-bug'><?php echo $lang->bug->allBugs;?></span> : <span><?php echo $project->totalBugs;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
<td class='text-center'><?php echo $release->date?></td>
|
||||
<td class='c-status' title='<?php echo zget($lang->release->statusList, $release->status);?>'>
|
||||
<span class="status-<?php echo $release->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->release->statusList, $release->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
.block-stories .c-stage {width: 80px;}
|
||||
.block-stories.block-sm .estimate,
|
||||
.block-stories.block-sm .c-stage,
|
||||
.block-stories.block-sm .c-status .label-dot {display: none;}
|
||||
.block-stories.block-sm .c-status {text-align: center;}
|
||||
</style>
|
||||
<div class='panel-body has-table scrollbar-hover'>
|
||||
@@ -59,7 +58,6 @@
|
||||
<?php endif;?>
|
||||
<td class='c-status' title='<?php echo zget($lang->story->statusList, $story->status);?>'>
|
||||
<span class="status-<?php echo $story->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->story->statusList, $story->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
<?php endif;?>
|
||||
<td class='c-status' title='<?php echo zget($lang->task->statusList, $task->status)?>'>
|
||||
<span class="status-<?php echo $task->status?>">
|
||||
<span class="label label-dot hide-in-sm"></span>
|
||||
<span class='status-text'><?php echo zget($lang->task->statusList, $task->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -43,4 +43,4 @@
|
||||
.title-group.required > .required:after {display: block; right: 29px; top: 5px;}
|
||||
.title-group .chosen-container {width: 1%!important; min-width: 70px;}
|
||||
.title-group #severity + .chosen-container > .chosen-single {border-radius: 0!important;}
|
||||
.title-group #pri + .chosen-container > .chosen-single {border-top-left-radius: 0!important; border-bottom-left-radius: 0!important;}
|
||||
.title-group #pri + .chosen-container > .chosen-single {border-top-left-radius: 0!important; border-bottom-left-radius: 0!important;}
|
||||
|
||||
@@ -2527,7 +2527,7 @@ class bugModel extends model
|
||||
echo zget($this->lang->bug->typeList, $bug->type);
|
||||
break;
|
||||
case 'status':
|
||||
echo "<span class='status-{$bug->status}'><span class='label label-dot'></span><span class='status-text'>";
|
||||
echo "<span class='status-{$bug->status}'><span class='status-text'>";
|
||||
echo zget($this->lang->bug->statusList, $bug->status);
|
||||
echo '</span></span>';
|
||||
break;
|
||||
@@ -2584,13 +2584,9 @@ class bugModel extends model
|
||||
}
|
||||
break;
|
||||
case 'assignedTo':
|
||||
$btnTextClass = '';
|
||||
$assignedToText = !empty($bug->assignedTo) ? zget($users, $bug->assignedTo) : $this->lang->bug->noAssigned;
|
||||
$btnTextClass = 'text-primary';
|
||||
if($bug->assignedTo == $account) $btnTextClass = 'text-red';
|
||||
$btnClass = $assignedToText == 'closed' ? ' disabled' : '';
|
||||
|
||||
echo html::a(helper::createLink('bug', 'assignTo', "bugID=$bug->id", '', true), "<i class='icon icon-hand-right'></i> <span class='{$btnTextClass}'>{$assignedToText}</span>", '', "class='iframe btn btn-sm btn-icon-left{$btnClass}'");
|
||||
echo "<span class='{$btnTextClass}'>" . zget($users, $bug->assignedTo) . "</span>";
|
||||
break;
|
||||
case 'assignedDate':
|
||||
echo substr($bug->assignedDate, 5, 11);
|
||||
@@ -2624,6 +2620,7 @@ class bugModel extends model
|
||||
break;
|
||||
case 'actions':
|
||||
$params = "bugID=$bug->id";
|
||||
common::printIcon('bug', 'assignTo', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'confirm', '', 'iframe', true);
|
||||
common::printIcon('bug', 'resolve', $params, $bug, 'list', 'checked', '', 'iframe', true);
|
||||
common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-link'");?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-primary'");?>
|
||||
<div class="divider"></div>
|
||||
<?php endif;?>
|
||||
<div class="page-title">
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
<td style='overflow:visible;padding-top:1px;padding-bottom:1px;'><?php echo ($bug->status == 'resolved' or $bug->status == 'closed') ? $users[$bug->resolvedBy] : html::select("resolvedBy[{$bug->id}]", $users, $this->app->user->account, "class='form-control chosen'");?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $story->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->story->statusList[$story->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -127,7 +127,6 @@ tbody tr td:first-child input{display:none;}
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $story->status;?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->story->statusList[$story->status];?>
|
||||
</span>
|
||||
</td>
|
||||
@@ -199,7 +198,6 @@ tbody tr td:first-child input{display:none;}
|
||||
<td class='text-left nobr' title='<?php echo $bug->title?>'><?php echo html::a($bugLink, $bug->title, '', "class='iframe' data-width='1000'");?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
@@ -260,7 +258,6 @@ tbody tr td:first-child input{display:none;}
|
||||
<td class='text-left nobr' title='<?php echo $bug->title?>'><?php echo html::a($bugLink, $bug->title, '', "class='iframe' data-width='1000'");?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -246,7 +246,6 @@ class commonModel extends model
|
||||
$isGuest = $app->user->account == 'guest';
|
||||
|
||||
echo "<a class='dropdown-toggle' data-toggle='dropdown'>";
|
||||
echo "<div class='avatar avatar-sm bg-secondary avatar-circle'>" . strtoupper($app->user->account{0}) . "</div>\n";
|
||||
echo "<span class='user-name'>" . (empty($app->user->realname) ? $app->user->account : $app->user->realname) . '</span>';
|
||||
echo "<span class='caret'></span>";
|
||||
echo '</a>';
|
||||
@@ -1612,7 +1611,7 @@ EOD;
|
||||
$user->view = $this->user->grantUserView($user->account, $user->rights['acls']);
|
||||
$user->admin = strpos($this->app->company->admins, ",{$user->account},") !== false;
|
||||
$this->session->set('user', $user);
|
||||
$this->app->user = $user;
|
||||
$this->app->user = $user;
|
||||
|
||||
$this->session->set('ENTRY_CODE', $this->get->code);
|
||||
$this->session->set('VALID_ENTRY', md5(md5($this->get->code) . $this->server->remote_addr));
|
||||
|
||||
@@ -57,9 +57,11 @@
|
||||
<span class="timeline-tag"><?php echo $action->time?></span>
|
||||
<span class="timeline-text">
|
||||
<?php echo zget($users, $action->actor) . ' ' . $action->actionLabel;?>
|
||||
<?php if($action->action != 'login' and $action->action != 'logout'):?>
|
||||
<span class="text-muted"><?php echo $action->objectLabel;?></span>
|
||||
<span class="label label-id"><?php echo $action->objectID;?></span>
|
||||
<?php echo html::a($action->objectLink, $action->objectName);?>
|
||||
<span class="label label-id"><?php echo $action->objectID;?></span>
|
||||
<?php endif;?>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
form {margin-right: 30px; margin-bottom:130px;}
|
||||
.modal-dialog{width:75%}
|
||||
form{margin-bottom:130px; padding-left:65px}
|
||||
table{width:90% !important}
|
||||
|
||||
#whiteListBox div.input-group {margin-bottom: 2px;}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
$config->entry->create = new stdclass();
|
||||
$config->entry->create->requiredFields = 'name, code, key';
|
||||
$config->entry->create->requiredFields = 'name, code, account, key';
|
||||
|
||||
$config->entry->edit = new stdclass();
|
||||
$config->entry->edit->requiredFields = 'name, code, key';
|
||||
$config->entry->edit->requiredFields = 'name, code, account, key';
|
||||
|
||||
$config->entry->help = 'http://www.zentao.net/book/zentaopmshelp/integration-287.html';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @copyright Copyright 2009-2017 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
||||
* @author Gang Liu <liugang@cnezsoft.com>
|
||||
* @package entry
|
||||
* @package entry
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
@@ -20,7 +20,7 @@
|
||||
<small><?php echo $lang->arrow . ' ' . $lang->entry->create;?></small>
|
||||
</h2>
|
||||
</div>
|
||||
<form class='main-form' id='entryForm' method='post' class='ajaxForm'>
|
||||
<form id='entryForm' method='post' class='ajaxForm'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->entry->name;?></th>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @copyright Copyright 2009-2017 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
||||
* @author Gang Liu <liugang@cnezsoft.com>
|
||||
* @package entry
|
||||
* @package entry
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
@@ -20,7 +20,7 @@
|
||||
<small><?php echo $lang->arrow . ' ' . $lang->entry->edit;?></small>
|
||||
</h2>
|
||||
</div>
|
||||
<form class='main-form' id='entryForm' method='post' class='ajaxForm'>
|
||||
<form id='entryForm' method='post' class='ajaxForm'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->entry->name;?></th>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<th class='w-user'> <?php common::printOrderLink('assignedTo', $orderBy, $vars, $lang->bug->assignedTo);?></th>
|
||||
<th class='w-user'> <?php common::printOrderLink('resolvedBy', $orderBy, $vars, $lang->bug->resolvedByAB);?></th>
|
||||
<th class='w-resolution'><?php common::printOrderLink('resolution', $orderBy, $vars, $lang->bug->resolutionAB);?></th>
|
||||
<th class='c-actions-5'> <?php echo $lang->actions;?></th>
|
||||
<th class='c-actions-6'> <?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -70,19 +70,14 @@
|
||||
<td><?php echo zget($lang->bug->typeList, $bug->type, '');?></td>
|
||||
<td class='text-left nobr'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title, null, "style='color: $bug->color'");?></td>
|
||||
<td><?php echo zget($users, $bug->openedBy);?></td>
|
||||
<td>
|
||||
<?php
|
||||
$assignedToText = !empty($bug->assignedTo) ? zget($users, $bug->assignedTo) : $this->lang->bug->noAssigned;
|
||||
$btnTextClass = 'text-red';
|
||||
$btnClass = $assignedToText == 'closed' ? ' disabled' : '';
|
||||
echo html::a(helper::createLink('bug', 'assignTo', "bugID=$bug->id", '', true), "<i class='icon icon-hand-right'></i> <span class='{$btnTextClass}'>{$assignedToText}</span>", '', "class='iframe btn btn-sm btn-icon-left{$btnClass}'");
|
||||
?>
|
||||
<td><?php echo "<span class='text-red'>" . zget($users, $bug->assignedTo) . "</span>";?>
|
||||
</td>
|
||||
<td><?php echo zget($users, $bug->resolvedBy);?></td>
|
||||
<td><?php echo zget($lang->bug->resolutionList, $bug->resolution);?></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
$params = "bugID=$bug->id";
|
||||
common::printIcon('bug', 'assignTo', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'confirm', '', 'iframe', true);
|
||||
common::printIcon('bug', 'resolve', $params, $bug, 'list', 'checked', '', 'iframe', true);
|
||||
common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
|
||||
@@ -54,9 +54,11 @@
|
||||
<span class="timeline-tag"><?php echo $action->time?></span>
|
||||
<span class="timeline-text">
|
||||
<?php echo $app->user->realname . ' ' . $action->actionLabel;?>
|
||||
<?php if($action->action != 'login' and $action->action != 'logout'):?>
|
||||
<span class="text-muted"><?php echo $action->objectLabel;?></span>
|
||||
<span class="label label-id"><?php echo $action->objectID;?></span>
|
||||
<?php echo html::a($action->objectLink, $action->objectName);?>
|
||||
<span class="label label-id"><?php echo $action->objectID;?></span>
|
||||
<?php endif;?>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -56,9 +56,9 @@
|
||||
<td><?php echo $project->end;?></td>
|
||||
<td class="c-status">
|
||||
<?php if(isset($project->delay)):?>
|
||||
<span class="status-delayed"><span class="label label-dot"></span> <?php echo $lang->project->delayed;?></span>
|
||||
<span class="status-delayed"> <?php echo $lang->project->delayed;?></span>
|
||||
<?php else:?>
|
||||
<span class="status-<?php echo $project->status?>"><span class="label label-dot"></span> <?php echo zget($lang->project->statusList, $project->status, '');?></span>
|
||||
<span class="status-<?php echo $project->status?>"> <?php echo zget($lang->project->statusList, $project->status, '');?></span>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<td><?php echo $project->role;?></td>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<td class='c-plan'><?php echo $story->planTitle;?></td>
|
||||
<td class='c-user'><?php echo $users[$story->openedBy];?></td>
|
||||
<td class='c-hours'><?php echo $story->estimate;?></td>
|
||||
<td class='c-status'><span class='status-<?php echo $story->status;?>'><span class="label label-dot"></span> <?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td class='c-status'><span class='status-<?php echo $story->status;?>'> <?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td class='c-stage'><?php echo zget($lang->story->stageList, $story->stage);?></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
|
||||
@@ -78,20 +78,13 @@
|
||||
<?php echo html::a($this->createLink('task', 'view', "taskID=$task->id"), $task->name, null, "style='color: $task->color'");?>
|
||||
</td>
|
||||
<td class='c-user'><?php echo zget($users, $task->openedBy);?></td>
|
||||
<td class='c-user'>
|
||||
<?php
|
||||
$assignedToText = !empty($task->assignedTo) ? zget($users, $task->assignedTo) : $this->lang->task->noAssigned;
|
||||
$btnTextClass = 'text-red';
|
||||
$btnClass = $assignedToText == 'closed' ? ' disabled' : '';
|
||||
echo html::a(helper::createLink('task', 'assignTo', "projectID=$task->project&taskID=$task->id", '', true), "<i class='icon icon-hand-right'></i> <span class='{$btnTextClass}'>{$assignedToText}</span>", '', "class='iframe btn btn-sm btn-icon-left{$btnClass}'");
|
||||
?>
|
||||
</td>
|
||||
<td class="c-assign"><?php echo "<span class='text-red'>" . zget($users, $task->assignedTo) . "</span>";?></td>
|
||||
<td class='c-user'><?php echo zget($users, $task->finishedBy);?></td>
|
||||
<td class='c-hours'><?php echo $task->estimate;?></td>
|
||||
<td class='c-hours'><?php echo $task->consumed;?></td>
|
||||
<td class='c-hours'><?php echo $task->left;?></td>
|
||||
<td class='c-date <?php if(isset($task->delay)) echo 'text-red';?>'><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
|
||||
<td class='c-status'><span class="status-<?php echo $task->status;?>"><span class="label label-dot"></span> <?php echo $lang->task->statusList[$task->status];?></span></td>
|
||||
<td class='c-status'><span class="status-<?php echo $task->status;?>"><?php echo $lang->task->statusList[$task->status];?></span></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
if($task->needConfirm)
|
||||
@@ -101,9 +94,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<div class='more'>";
|
||||
if($task->status == 'wait') common::printIcon('task', 'finish', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
echo "</div>";
|
||||
common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
|
||||
if($task->status == 'wait') common::printIcon('task', 'start', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
if($task->status == 'pause') common::printIcon('task', 'restart', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<td class="c-name" title="<?php echo $todo->name;?>"><?php echo html::a($this->createLink('todo', 'view', "id=$todo->id&from=my", '', true), $todo->name, '', "data-toggle='modal' data-type='iframe' data-title='" . $lang->todo->view . "' data-icon='check'");?></td>
|
||||
<td class="c-begin"><?php echo $todo->begin;?></td>
|
||||
<td class="c-end"><?php echo $todo->end;?></td>
|
||||
<td class="c-status"><span class="status-<?php echo $todo->status;?>"><span class="label label-dot"></span> <?php echo $lang->todo->statusList[$todo->status];?></span></td>
|
||||
<td class="c-status"><span class="status-<?php echo $todo->status;?>"><?php echo $lang->todo->statusList[$todo->status];?></span></td>
|
||||
<td class="c-actions">
|
||||
<?php
|
||||
if($todo->status == 'done' or $todo->status == 'closed')
|
||||
|
||||
@@ -52,14 +52,12 @@
|
||||
<?php if(isset($project->delay)):?>
|
||||
<td class='c-status' title='<?php echo $lang->project->delayed;?>'>
|
||||
<span class="status-delayed">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo $lang->project->delayed;?></span>
|
||||
</span>
|
||||
</td>
|
||||
<?php else:?>
|
||||
<td class='c-status' title='<?php echo zget($lang->project->statusList, $project->status);?>'>
|
||||
<span class="status-<?php echo $project->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->project->statusList, $project->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
if(common::hasPriv('productplan', 'delete', $plan))
|
||||
{
|
||||
$deleteURL = $this->createLink('productplan', 'delete', "planID=$plan->id&confirm=yes");
|
||||
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"productplanList\",confirmDelete)", '<i class="icon-close"></i>', '', "class='btn btn-icon' title='{$lang->productplan->delete}'");
|
||||
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"productplanList\",confirmDelete)", '<i class="icon-close"></i>', '', "class='btn' title='{$lang->productplan->delete}'");
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
<td><?php echo $users[$bug->assignedTo];?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $story->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->story->statusList[$story->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID=$plan->id");?>
|
||||
<?php common::printBack($browseLink, 'btn btn-link');?>
|
||||
<?php common::printBack($browseLink, 'btn btn-primary');?>
|
||||
<div class='divider'></div>
|
||||
<div class='page-title'>
|
||||
<span class='label label-id'><?php echo $plan->id;?></span>
|
||||
@@ -142,8 +142,7 @@
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $story->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->story->statusList[$story->status];?><span>
|
||||
<?php echo $lang->story->statusList[$story->status];?>
|
||||
</span>
|
||||
</td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
@@ -378,7 +377,6 @@
|
||||
<td><?php echo zget($users, $bug->assignedTo);?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -80,7 +80,6 @@
|
||||
<td><?php echo $project->end;?></td>
|
||||
<td class='c-status' title='<?php echo zget($lang->project->statusList, $project->status);?>'>
|
||||
<span class="status-<?php echo $project->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->project->statusList, $project->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<th class='w-110px'> <?php common::printOrderLink('assignedTo', $orderBy, $vars, $lang->assignedToAB);?></th>
|
||||
<th class='w-user'> <?php common::printOrderLink('resolvedBy', $orderBy, $vars, $lang->bug->resolvedBy);?></th>
|
||||
<th class='w-resolution'><?php common::printOrderLink('resolution', $orderBy, $vars, $lang->bug->resolutionAB);?></th>
|
||||
<th class='c-actions text-center'><?php echo $lang->actions;?></th>
|
||||
<th class='c-actions-5 text-center'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -77,19 +77,15 @@
|
||||
<td class='text-left' title="<?php echo $bug->title?>"><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title, null, "style='color: $bug->color'");?></td>
|
||||
<td><?php echo zget($users, $bug->openedBy, $bug->openedBy);?></td>
|
||||
<td class='c-assignedTo has-btn text-left'>
|
||||
<?php $assignedTo = zget($users, $bug->assignedTo, $bug->assignedTo);?>
|
||||
<?php $params = "bugID=$bug->id";?>
|
||||
<?php $class = $bug->assignedTo == $this->app->user->account ? 'text-red' : 'text-primary';?>
|
||||
<?php if(common::hasPriv('bug', 'assignTo')):?>
|
||||
<?php echo html::a($this->createLink('bug', 'assignTo', $params, '', 'true'), "<i class='icon icon-hand-right'></i> <span class='$class'>$assignedTo</span>", '', "class='iframe btn btn-icon-left btn-sm'");?>
|
||||
<?php else:?>
|
||||
<?php echo $assignedTo;?>
|
||||
<?php endif;?>
|
||||
<?php echo "<span class='$class'>" . zget($users, $bug->assignedTo, $bug->assignedTo) . "</span>";?>
|
||||
</td>
|
||||
<td><?php echo zget($users, $bug->resolvedBy, $bug->resolvedBy);?></td>
|
||||
<td><?php echo $lang->bug->resolutionList[$bug->resolution];?></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
$params = "bugID=$bug->id";
|
||||
common::printIcon('bug', 'assignTo', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
if($bug->status == 'active') common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'confirm', '', 'iframe', true);
|
||||
if($bug->status == 'active') common::printIcon('bug', 'resolve', $params, $bug, 'list', 'check', '', 'iframe', true);
|
||||
if($bug->status != 'active') common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true);
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
<th class="w-50px"><?php echo $lang->task->progress;?></th>
|
||||
<th class="c-type"><?php echo $lang->typeAB;?></th>
|
||||
<th class="c-date"><?php echo $lang->task->deadlineAB;?></th>
|
||||
<th class="c-actions-2"><?php echo $lang->actions;?></th>
|
||||
<th class="c-actions-3"><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -191,9 +191,8 @@
|
||||
if(!common::printLink('task', 'view', "task=$task->id", $task->name)) echo $task->name;
|
||||
?>
|
||||
</td>
|
||||
<td class="c-status"><span class='status-<?php echo $task->status;?>'><span class="label label-dot"></span> <?php echo $lang->task->statusList[$task->status];?></span></td>
|
||||
<?php $assignedToRealName = $task->assignedToRealName ? $task->assignedToRealName : $lang->task->noAssigned;?>
|
||||
<td class="c-assign text-left has-btn"><?php echo html::a($this->createLink('task', 'assignTo', "projectID=$task->project&taskID=$task->id", 'html', true), '<i class="icon icon-hand-right"></i> ' . $assignedToRealName, '', "class='iframe btn btn-icon-left btn-sm' $assignedToClass");?></td>
|
||||
<td class="c-status"><span class='status-<?php echo $task->status;?>'> <?php echo $lang->task->statusList[$task->status];?></span></td>
|
||||
<td class="c-assign"><?php echo "<span class='$assignedToClass'>" . $task->assignedToRealName . "</span>";?></td>
|
||||
<td class='c-user'><?php echo zget($users, $task->finishedBy);?></td>
|
||||
<td class="c-hours em"><?php echo $task->estimate;?></td>
|
||||
<td class="c-hours em"><?php echo $task->consumed;?></td>
|
||||
@@ -202,6 +201,7 @@
|
||||
<td class="c-type"><?php echo zget($lang->task->typeList, $task->type);?></td>
|
||||
<td class='c-date <?php if(isset($task->delay)) echo 'delayed';?>'><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
|
||||
<td class="c-actions">
|
||||
<?php common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'list', '', '', 'iframe', true);?>
|
||||
<?php common::printIcon('task', 'edit', "taskid=$task->id", '', 'list');?>
|
||||
<?php common::printIcon('task', 'delete', "projectID=$task->project&taskid=$task->id", '', 'list', '', 'hiddenwin');?>
|
||||
</td>
|
||||
|
||||
@@ -59,7 +59,7 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<td><span class='<?php echo 'severity' . zget($lang->bug->severityList, $bug->severity, $bug->severity)?>'><?php echo zget($lang->bug->severityList, $bug->severity, $bug->severity)?></span></td>
|
||||
<td><span class='label-pri <?php echo 'label-pri-' . $bug->pri;?>' title='<?php echo zget($lang->bug->priList, $bug->pri, $bug->pri)?>'><?php echo zget($lang->bug->priList, $bug->pri, $bug->pri)?></span></td>
|
||||
<td class='nobr'><?php common::printLink('bug', 'view', "bugID=$bug->id", $bug->title, '', "class='preview'", true, true);?></td>
|
||||
<td><span class='status-<?php echo $bug->status?>'><span class='label label-dot'></span> <?php echo $lang->bug->statusList[$bug->status];?></span></td>
|
||||
<td><span class='status-<?php echo $bug->status?>'><?php echo $lang->bug->statusList[$bug->status];?></span></td>
|
||||
<td style='overflow:visible'><?php echo html::select("pri[$bug->id]", $lang->task->priList, 3, "class='form-control chosen'");?></td>
|
||||
<td style='overflow:visible'><?php echo html::select("assignedTo[$bug->id]", $users, zget($users, $bug->assignedTo, '', $bug->assignedTo), "class='form-control chosen'");?></td>
|
||||
<td><?php echo html::input("estimate[$bug->id]", '', 'size=4 class="form-control" autocomplete="off"');?></td>
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
<td class=<?php if(isset($task->delay)) echo 'delayed';?>><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $task->status;?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->task->statusList[$task->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
<td class='c-estimate'><?php echo $story->estimate;?></td>
|
||||
<td class='c-status' title='<?php echo zget($lang->story->statusList, $story->status);?>'>
|
||||
<span class='status-<?php echo $story->status;?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<span class='status-text'><?php echo zget($lang->story->statusList, $story->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -93,7 +93,6 @@
|
||||
<td><?php echo $task->end?></td>
|
||||
<td title='<?php echo $lang->testtask->statusList[$task->status];?>'>
|
||||
<span class='status-<?php echo $task->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<span class='status-text'><?php echo $lang->testtask->statusList[$task->status];?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
<td class='text-center'><?php echo $release->date;?></td>
|
||||
<td class='c-status' title='<?php echo zget($lang->release->statusList, $release->status);?>'>
|
||||
<span class="status-<?php echo $release->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->release->statusList, $release->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -52,7 +52,6 @@ $formID = $type == 'leftBug' ? 'unlinkedLeftBugsForm' : 'unlinkedBugsForm';
|
||||
<td><?php echo $users[$bug->resolvedBy];?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<td><?php echo zget($users, $story->openedBy);?></td>
|
||||
<td><?php echo zget($users, $story->assignedTo);?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td><span class='status-<?php echo $story->status?>'><span class="label label-dot"></span> <?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td><span class='status-<?php echo $story->status?>'><?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td><?php echo zget($lang->story->stageList, $story->stage);?></td>
|
||||
</tr>
|
||||
<?php $unlinkedCount++;?>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID=$release->product");?>
|
||||
<?php common::printBack($browseLink, 'btn btn-link');?>
|
||||
<?php common::printBack($browseLink, 'btn btn-primary');?>
|
||||
<div class='divider'></div>
|
||||
<div class='page-title'>
|
||||
<span class='label label-id'><?php echo $release->id;?></span>
|
||||
@@ -107,7 +107,9 @@
|
||||
<td class='text-left nobr' title='<?php echo $story->title?>'><?php echo html::a($storyLink,$story->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td><span class='status-<?php echo $story->status;?>'><span class="label label-dot"></span> <?php echo $lang->story->statusList[$story->status];?></span></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></span>
|
||||
</td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
@@ -175,7 +177,9 @@
|
||||
<?php echo sprintf('%03d', $bug->id);?>
|
||||
</td>
|
||||
<td class='text-left nobr' title='<?php echo $bug->title?>'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><span class='status-<?php echo $bug->status?>'><span class="label label-dot"></span> <?php echo zget($lang->bug->statusList, $bug->status);?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'><?php echo zget($lang->bug->statusList, $bug->status);?></span>
|
||||
</td>
|
||||
<td><?php echo $users[$bug->openedBy];?></td>
|
||||
<td><?php echo substr($bug->openedDate, 5, 11)?></td>
|
||||
<td><?php echo $users[$bug->resolvedBy];?></td>
|
||||
@@ -248,7 +252,7 @@
|
||||
<span class='label-severity' data-severity='<?php echo $bug->severity;?>' title='<?php echo zget($lang->bug->severityList, $bug->severity, $bug->severity);?>'></span>
|
||||
</td>
|
||||
<td class='text-left nobr' title='<?php echo $bug->title?>'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><span class='status-<?php echo $bug->status?>'><span class="label label-dot"></span> <?php echo zget($lang->bug->statusList, $bug->status);?></span></td>
|
||||
<td><span class='status-<?php echo $bug->status?>'> <?php echo zget($lang->bug->statusList, $bug->status);?></span></td>
|
||||
<td><?php echo zget($users, $bug->openedBy);?></td>
|
||||
<td><?php echo $bug->openedDate?></td>
|
||||
<td class='c-actions'>
|
||||
|
||||
@@ -2354,7 +2354,7 @@ class storyModel extends model
|
||||
break;
|
||||
case 'status':
|
||||
echo "<span class='status-{$story->status}'>";
|
||||
echo "<span class='label label-dot'></span> " . $this->lang->story->statusList[$story->status];
|
||||
echo $this->lang->story->statusList[$story->status];
|
||||
echo '</span>';
|
||||
break;
|
||||
case 'estimate':
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
<td><?php echo $users[$task->assignedTo];?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $task->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->task->statusList[$task->status];?>
|
||||
</span>
|
||||
</td>
|
||||
@@ -61,7 +60,6 @@
|
||||
<td class='text-left'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '_blank');?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $bug->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->bug->statusList[$bug->status];?>
|
||||
</span>
|
||||
</td>
|
||||
@@ -92,7 +90,6 @@
|
||||
<td class='text-left'><?php echo html::a($this->createLink('testcase', 'view', "caseID=$case->id"), $case->title, '_blank');?></td>
|
||||
<td>
|
||||
<span class='status-<?php echo $case->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<?php echo $lang->testcase->statusList[$case->status];?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-link'");?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-primary'");?>
|
||||
<div class="divider"></div>
|
||||
<?php endif;?>
|
||||
<div class="page-title">
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
<td><?php echo $users[$story->assignedTo];?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td><span class='status-<?php echo $story->status;?>'><span class="label label-dot"></span> <?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td><span class='status-<?php echo $story->status;?>'><?php echo zget($lang->story->statusList, $story->status);?></span></td>
|
||||
<td><?php echo zget($lang->story->stageList, $story->stage);?></td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
|
||||
@@ -197,5 +197,5 @@ $config->task->datatable->fieldList['lastEditedDate']['required'] = 'no';
|
||||
|
||||
$config->task->datatable->fieldList['actions']['title'] = 'actions';
|
||||
$config->task->datatable->fieldList['actions']['fixed'] = 'right';
|
||||
$config->task->datatable->fieldList['actions']['width'] = '160';
|
||||
$config->task->datatable->fieldList['actions']['width'] = '180';
|
||||
$config->task->datatable->fieldList['actions']['required'] = 'yes';
|
||||
|
||||
+5
-14
@@ -2418,7 +2418,7 @@ class taskModel extends model
|
||||
echo $this->lang->task->typeList[$task->type];
|
||||
break;
|
||||
case 'status':
|
||||
$storyChanged ? print("<span class='status-changed'><span class='label label-dot'></span> {$this->lang->story->changed}</span>") : print("<span class='status-{$task->status}'><span class='label label-dot'></span> {$this->lang->task->statusList[$task->status]}</span>");
|
||||
$storyChanged ? print("<span class='status-changed'>{$this->lang->story->changed}</span>") : print("<span class='status-{$task->status}'> {$this->lang->task->statusList[$task->status]}</span>");
|
||||
break;
|
||||
case 'estimate':
|
||||
echo round($task->estimate, 1);
|
||||
@@ -2450,15 +2450,8 @@ class taskModel extends model
|
||||
case 'assignedTo':
|
||||
$btnTextClass = '';
|
||||
$assignedToText = zget($users, $task->assignedTo);
|
||||
$btnTextClass = '';
|
||||
if(empty($task->assignedTo))
|
||||
{
|
||||
$btnTextClass = 'text-primary';
|
||||
$assignedToText = $this->lang->task->noAssigned;
|
||||
} else if($task->assignedTo == $account) $btnTextClass = 'text-red';
|
||||
$btnClass = $assignedToText == 'closed' ? ' disabled' : '';
|
||||
|
||||
echo html::a(helper::createLink('task', 'assignTo', "projectID=$task->project&taskID=$task->id", '', true), "<i class='icon icon-hand-right'></i> <span class='{$btnTextClass}'>{$assignedToText}</span>", '', "class='iframe btn btn-icon-left btn-sm {$btnClass}'");
|
||||
if($task->assignedTo == $account) $btnTextClass = 'text-red';
|
||||
echo "<span class='{$btnTextClass}'>{$assignedToText}</span>";
|
||||
break;
|
||||
case 'assignedDate':
|
||||
echo substr($task->assignedDate, 5, 11);
|
||||
@@ -2519,10 +2512,8 @@ class taskModel extends model
|
||||
break;
|
||||
}
|
||||
|
||||
echo "<div class='more'>";
|
||||
if($task->status == 'wait') common::printIcon('task', 'finish', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
echo "</div>";
|
||||
|
||||
common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
|
||||
if($task->status == 'wait') common::printIcon('task', 'start', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
if($task->status == 'pause') common::printIcon('task', 'restart', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
if($task->status == 'done' or $task->status == 'cancel' or $task->status == 'closed') common::printIcon('task', 'close', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-link'");?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-primary'");?>
|
||||
<div class="divider"></div>
|
||||
<?php endif;?>
|
||||
<div class="page-title">
|
||||
|
||||
@@ -13,8 +13,9 @@
|
||||
.dropdown-list > li > a:focus {color: #1a4f85;text-decoration: none;background-color: #ddd;}
|
||||
|
||||
.pl-5px{padding-left:5px;}
|
||||
.fail a, .fail a .icon{color:#f00 !important}
|
||||
.blocked a, .blocked a .icon{color:#f00 !important}
|
||||
|
||||
.fail .result-fail, .blocked .result-blocked{color:#f00;}
|
||||
.pass .result-pass{color:green;}
|
||||
|
||||
tbody > tr > td > .btn-icon {margin-right: 3px;}
|
||||
tbody > tr > td .icon-bug {margin-left: -8px;}
|
||||
|
||||
@@ -36,4 +36,7 @@
|
||||
|
||||
#branch {border-left-width: 0px;}
|
||||
|
||||
.input-group-addon.w-80px{min-width:80px;}
|
||||
.input-group-addon.w-80px{min-width:80px;}
|
||||
|
||||
.title-group.required:after {display: none;}
|
||||
.title-group.required > .required:after {display: block; right: 29px; top: 5px;}
|
||||
|
||||
@@ -158,4 +158,12 @@ $(function()
|
||||
});
|
||||
|
||||
initSteps();
|
||||
|
||||
$('#pri').on('change', function()
|
||||
{
|
||||
var $select = $(this);
|
||||
var $selector = $select.closest('.pri-selector');
|
||||
var value = $select.val();
|
||||
$selector.find('.pri-text').html('<span class="label-pri label-pri-' + value + '" title="' + value + '">' + value + '</span>');
|
||||
});
|
||||
})
|
||||
|
||||
@@ -1419,8 +1419,10 @@ class testcaseModel extends model
|
||||
if(!helper::isZeroDate($case->lastRunDate)) echo date(DT_MONTHTIME1, strtotime($case->lastRunDate));
|
||||
break;
|
||||
case 'lastRunResult':
|
||||
$class = 'result-' . $case->lastRunResult;
|
||||
$lastRunResultText = $case->lastRunResult ? zget($this->lang->testcase->resultList, $case->lastRunResult, $case->lastRunResult) : $this->lang->testcase->unexecuted;
|
||||
echo html::a(helper::createLink('testtask', 'results', "runID=0&caseID=$case->id", '', true), "<i class='icon icon-list-alt'></i> <span>{$lastRunResultText}</span>", '', "class='iframe btn btn-icon-left btn-sm'");
|
||||
echo "<span class='$class'>" . $lastRunResultText . "</span>";
|
||||
//html::a(helper::createLink('testtask', 'results', "runID=0&caseID=$case->id", '', true), "<i class='icon icon-list-alt'></i> <span>{$lastRunResultText}</span>", '', "class='iframe btn btn-icon-left btn-sm'");
|
||||
break;
|
||||
case 'bugs':
|
||||
echo (common::hasPriv('testcase', 'bugs') and $case->bugs) ? html::a(helper::createLink('testcase', 'bugs', "runID=0&caseID={$case->id}"), $case->bugs, '', "class='iframe'") : $case->bugs;
|
||||
@@ -1438,6 +1440,7 @@ class testcaseModel extends model
|
||||
break;
|
||||
}
|
||||
|
||||
common::printIcon('testtask', 'results', "runID=0&caseID=$case->id", $case, 'list', '', '', 'iframe', true);
|
||||
common::printIcon('testtask', 'runCase', "runID=0&caseID=$case->id&version=$case->version", $case, 'list', 'play', '', 'runCase iframe', false, "data-width='95%'");
|
||||
common::printIcon('testcase', 'edit', "caseID=$case->id", $case, 'list');
|
||||
if($this->config->testcase->needReview or !empty($this->config->testcase->forceReview)) common::printIcon('testcase', 'review', "caseID=$case->id", $case, 'list', 'glasses', '', 'iframe');
|
||||
|
||||
@@ -83,53 +83,55 @@
|
||||
<tr>
|
||||
<th><?php echo $lang->testcase->title;?></th>
|
||||
<td colspan='2'>
|
||||
<div class="input-control has-icon-right">
|
||||
<?php echo html::input('title', $caseTitle, "class='form-control' autocomplete='off'");?>
|
||||
<div class="colorpicker">
|
||||
<button type="button" class="btn btn-link dropdown-toggle" data-toggle="dropdown"><span class="cp-title"></span><span class="color-bar"></span><i class="ic"></i></button>
|
||||
<ul class="dropdown-menu clearfix">
|
||||
<li class="heading"><?php echo $lang->testcase->colorTag;?><i class="icon icon-close"></i></li>
|
||||
</ul>
|
||||
<input type="hidden" class="colorpicker" id="color" name="color" value="" data-icon="color" data-wrapper="input-control-icon-right" data-update-color="#title" data-provide="colorpicker">
|
||||
<div class="input-group title-group">
|
||||
<div class="input-control has-icon-right">
|
||||
<?php echo html::input('title', $caseTitle, "class='form-control' autocomplete='off'");?>
|
||||
<div class="colorpicker">
|
||||
<button type="button" class="btn btn-link dropdown-toggle" data-toggle="dropdown"><span class="cp-title"></span><span class="color-bar"></span><i class="ic"></i></button>
|
||||
<ul class="dropdown-menu clearfix">
|
||||
<li class="heading"><?php echo $lang->testcase->colorTag;?><i class="icon icon-close"></i></li>
|
||||
</ul>
|
||||
<input type="hidden" class="colorpicker" id="color" name="color" value="" data-icon="color" data-wrapper="input-control-icon-right" data-update-color="#title" data-provide="colorpicker">
|
||||
</div>
|
||||
</div>
|
||||
<?php if(strpos(",$showFields,", ',pri,') !== false): // begin print pri selector?>
|
||||
<span class="input-group-addon fix-border br-0"><?php echo $lang->testcase->pri;?></span>
|
||||
<?php
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->testcase->priList as $priKey => $priValue)
|
||||
{
|
||||
if(!empty($priKey) and (string)$priKey != (string)$priValue)
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$priList = $lang->testcase->priList;
|
||||
if(end($priList))
|
||||
{
|
||||
unset($priList[0]);
|
||||
$priList[0] = '';
|
||||
}
|
||||
?>
|
||||
<?php if($hasCustomPri):?>
|
||||
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control'");?>
|
||||
<?php else: ?>
|
||||
<div class="input-group-btn pri-selector" data-type="pri">
|
||||
<button type="button" class="btn dropdown-toggle br-0" data-toggle="dropdown">
|
||||
<span class="pri-text"><span class="label-pri label-pri-<?php echo empty($pri) ? '0' : $pri?>" title="<?php echo $pri?>"><?php echo $pri?></span></span> <span class="caret"></span>
|
||||
</button>
|
||||
<div class='dropdown-menu pull-right'>
|
||||
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control' data-provide='labelSelector' data-label-class='label-pri'");?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; // end print pri selector ?>
|
||||
<?php if(!$this->testcase->forceNotReview()):?>
|
||||
<span class="input-group-addon fix-border br-0"><?php echo html::checkbox('forceNotReview', $lang->testcase->forceNotReview, '', "id='forceNotReview0'");?></span>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(!$this->testcase->forceNotReview()):?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?php echo html::checkbox('forceNotReview', $lang->testcase->forceNotReview, '', "id='forceNotReview0'");?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php if(strpos(",$showFields,", ',pri,') !== false):?>
|
||||
<tr>
|
||||
<th><?php echo $lang->testcase->pri;?></th>
|
||||
<td>
|
||||
<?php
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->testcase->priList as $priKey => $priValue)
|
||||
{
|
||||
if(!empty($priKey) and (string)$priKey != (string)$priValue)
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$priList = $lang->testcase->priList;
|
||||
if(end($priList))
|
||||
{
|
||||
unset($priList[0]);
|
||||
$priList[0] = '';
|
||||
}
|
||||
?>
|
||||
<?php if($hasCustomPri):?>
|
||||
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control chosen'");?>
|
||||
<?php else: ?>
|
||||
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control' data-provide='labelSelector' data-label-class='label-pri'");?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<tr>
|
||||
<th><?php echo $lang->testcase->precondition;?></th>
|
||||
<td colspan='2'><?php echo html::textarea('precondition', $precondition, " rows='2' class='form-control'");?></td>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<span class='status-{$case->status}'><span class='label label-dot'></span><span class='status-text'>";
|
||||
echo "<span class='status-{$case->status}'><span class='status-text'>";
|
||||
echo $lang->testcase->statusList[$case->status];
|
||||
echo '</span></span>';
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<?php $browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-link'");?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-primary'");?>
|
||||
<div class="divider"></div>
|
||||
<div class="page-title">
|
||||
<span class='label label-id'><?php echo $case->id;?></span>
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<td><?php if($bug->resolvedDate != '0000-00-00 00:00:00') echo substr($bug->resolvedDate, 2);?></td>
|
||||
<td title='<?php echo zget($lang->bug->statusList, $bug->status);?>'>
|
||||
<span class="status-<?php echo $bug->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->bug->statusList, $bug->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
<td><?php echo zget($lang->testcase->resultList, $case->lastRunResult);?></td>
|
||||
<td title='<?php echo zget($lang->testtask->statusList, $case->status);?>'>
|
||||
<span class="status-<?php echo $case->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->testtask->statusList, $case->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<td><?php if($bug->resolvedDate != '0000-00-00 00:00:00') echo substr($bug->resolvedDate, 2);?></td>
|
||||
<td title='<?php echo zget($lang->bug->statusList, $bug->status);?>'>
|
||||
<span class="status-<?php echo $bug->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->bug->statusList, $bug->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
<td><?php echo $story->estimate?></td>
|
||||
<td title='<?php echo zget($lang->story->statusList, $story->status);?>'>
|
||||
<span class="status-<?php echo $story->status?>">
|
||||
<span class="label label-dot"></span>
|
||||
<span class='status-text'><?php echo zget($lang->story->statusList, $story->status);?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->testsuiteList ? $this->session->testsuiteList : $this->createLink('testsuite', 'browse', "productID=$suite->product");?>
|
||||
<?php common::printBack($browseLink, 'btn btn-link');?>
|
||||
<?php common::printBack($browseLink, 'btn btn-primary');?>
|
||||
<div class='divider'></div>
|
||||
<div class='page-title'>
|
||||
<span class='label label-id'><?php echo $suite->id;?></span>
|
||||
|
||||
@@ -9,3 +9,6 @@ tbody > tr > td .icon-bug {margin-left: -8px;}
|
||||
.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single{height:28px;padding:3px 6px}
|
||||
.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single span{font-size:12px;}
|
||||
.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single div{line-height:10px;}
|
||||
|
||||
.fail .result-fail, .blocked .result-blocked{color:#f00;}
|
||||
.pass .result-pass{color:green;}
|
||||
|
||||
@@ -1249,7 +1249,8 @@ class testtaskModel extends model
|
||||
break;
|
||||
case 'lastRunResult':
|
||||
$lastRunResultText = $run->lastRunResult ? zget($this->lang->testcase->resultList, $run->lastRunResult, $run->lastRunResult) : $this->lang->testcase->unexecuted;
|
||||
echo html::a(helper::createLink('testtask', 'results', "id={$run->id}", '', true), "<i class='icon icon-list-alt'></i> <span>{$lastRunResultText}</span>", '', "class='iframe btn btn-icon-left'");
|
||||
$class = 'result-' . $run->lastRunResult;
|
||||
echo "<span class='$class'>" . $lastRunResultText . "</span>";
|
||||
break;
|
||||
case 'story':
|
||||
if($run->story and $run->storyTitle) echo html::a(helper::createLink('story', 'view', "storyID=$run->story"), $run->storyTitle);
|
||||
@@ -1268,10 +1269,9 @@ class testtaskModel extends model
|
||||
echo $run->stepNumber;
|
||||
break;
|
||||
case 'actions':
|
||||
echo "<div class='more'>";
|
||||
common::printIcon('testcase', 'createBug', "product=$run->product&branch=$run->branch&extra=projectID=$task->project,buildID=$task->build,caseID=$run->case,version=$run->version,runID=$run->id,testtask=$task->id", $run, 'list', 'bug', '', 'iframe', '', "data-width='90%'");
|
||||
echo "</div>";
|
||||
|
||||
common::printIcon('testtask', 'results', "id=$run->id", $run, 'list', '', '', 'iframe', '', "data-width='90%'");
|
||||
common::printIcon('testtask', 'runCase', "id=$run->id", $run, 'list', '', '', 'runCase iframe', false, "data-width='95%'");
|
||||
|
||||
if(common::hasPriv('testtask', 'unlinkCase', $run))
|
||||
|
||||
@@ -93,7 +93,6 @@ $status = $this->session->testTaskVersionStatus;
|
||||
<td><?php echo $task->end?></td>
|
||||
<td title='<?php echo $lang->testtask->statusList[$task->status];?>'>
|
||||
<span class='status-<?php echo $task->status?>'>
|
||||
<span class='label label-dot'></span>
|
||||
<span class='status-text'><?php echo $lang->testtask->statusList[$task->status];?></span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
if(!$useDatatable) include '../../common/view/tablesorter.html.php';
|
||||
|
||||
$config->testcase->datatable->defaultField = $config->testtask->datatable->defaultField;
|
||||
$config->testcase->datatable->fieldList['actions']['width'] = '90';
|
||||
$config->testcase->datatable->fieldList['actions']['width'] = '140';
|
||||
|
||||
$setting = $this->datatable->getSetting('testtask');
|
||||
$widths = $this->datatable->setFixedFieldWidth($setting);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php $backLink = $this->session->{$viewType . 'List'} ? $this->session->{$viewType . 'List'} : 'javascript:history.go(-1)';?>
|
||||
<a href="<?php echo $backLink;?>" class="btn btn-link">
|
||||
<a href="<?php echo $backLink;?>" class="btn btn-primary">
|
||||
<i class="icon icon-back icon-sm"></i> <?php echo $lang->goback;?>
|
||||
</a>
|
||||
<div class="divider"></div>
|
||||
|
||||
@@ -11,3 +11,7 @@
|
||||
|
||||
/* Finish task #4751. */
|
||||
.hide-sidebar #sidebar .cell{display:none;}
|
||||
/* 调整每个创建页面的宽度*/
|
||||
.main-content{padding:30px;}
|
||||
/* 详情页上一页下一页的样式*/
|
||||
#nextPage, #prevPage{background-color:#909090;color:#fff}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user