* Code for task#74146.

This commit is contained in:
xieqiyu
2022-10-31 07:39:30 +00:00
parent fc2784df82
commit 5a2bccfb7c
12 changed files with 56 additions and 1 deletions
+3
View File
@@ -856,6 +856,7 @@ class story extends control
$this->view->title = $this->lang->story->edit . "STORY" . $this->lang->colon . $this->view->story->title;
$this->view->position[] = $this->lang->story->edit;
$this->view->story = $story;
$this->view->siblings = $this->story->getByList($story->sibling);
$this->view->stories = $stories;
$this->view->users = $users;
$this->view->product = $product;
@@ -1154,6 +1155,8 @@ class story extends control
/* Assign. */
$this->view->title = $this->lang->story->change . "STORY" . $this->lang->colon . $this->view->story->title;
$this->view->siblings = $this->story->getByList($story->sibling);
$this->view->branches = $this->loadModel('branch')->getPairs($story->product);
$this->view->users = $this->user->getPairs('pofirst|nodeleted|noclosed', $this->view->story->assignedTo);
$this->view->position[] = $this->lang->story->change;
$this->view->needReview = (($this->app->user->account == $this->view->product->PO or $this->config->story->needReview == 0 or !$this->story->checkForceReview()) and empty($reviewer)) ? "checked='checked'" : "";
+4 -1
View File
@@ -2,4 +2,7 @@
#affectedProjects .table + h6 {border-top: 1px solid #ddd;}
.nav-tabs>li>a {height: 36px;}
.table-form>tbody>tr>th {width: 100px !important;}
.colorpicker {right: 7px; top: 7px; opacity: 1;}
.colorpicker {right: 7px; top: 7px; opacity: 1;}
#siblingTd td, #siblingTh td {padding-left: 65px;}
#siblingTh td {font-weight: 700;}
#siblingTd ul li {padding-top: 5px;}
+1
View File
@@ -5,3 +5,4 @@
.needNotReviewBox {width: 130px;}
.needNotReviewBox span.input-group-addon {border: 1px solid #dcdcdc; border-left-width: 0px; width:130px;}
#moduleIdBox .chosen-container, #planIdBox .chosen-container {min-width: unset;}
#siblingList ul li {padding-top:5px;}
+1
View File
@@ -1,5 +1,6 @@
$(function()
{
$('[data-toggle="tooltip"]').tooltip();
$('#needNotReview').on('change', function()
{
$('#reviewer').val($(this).is(':checked') ? '' : lastReviewer).attr('disabled', $(this).is(':checked') ? 'disabled' : null).trigger('chosen:updated');
+1
View File
@@ -1,5 +1,6 @@
$(function()
{
$('[data-toggle="tooltip"]').tooltip();
$('.main-side #branch').closest('td').find('#product_chosen .chosen-single').css('width', '153px');
if(storyStatus == 'reviewing')
+2
View File
@@ -95,6 +95,8 @@ $lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
$lang->story->float = "『%s』should be positive number, decimals included.";
$lang->story->saveDraftSuccess = 'Save as draft succeeded.';
$lang->story->changeSyncTip = "The modification of this story will be synchronized to the following twin requirements";
$lang->story->syncTip = "The twin story are synchronized except for product, branch, module, plan, and stage. After the twin relationship is dissolved, they are no longer synchronized.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
+2
View File
@@ -95,6 +95,8 @@ $lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
$lang->story->float = "『%s』should have positive number, or decimals.";
$lang->story->saveDraftSuccess = 'Save as draft succeeded.';
$lang->story->changeSyncTip = "The modification of this story will be synchronized to the following twin requirements";
$lang->story->syncTip = "The twin story are synchronized except for product, branch, module, plan, and stage. After the twin relationship is dissolved, they are no longer synchronized.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
+2
View File
@@ -95,6 +95,8 @@ $lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
$lang->story->float = "『 %s 』doit avoir des nombres positifs ou décimaux.";
$lang->story->saveDraftSuccess = 'Save as draft succeeded.';
$lang->story->changeSyncTip = "The modification of this story will be synchronized to the following twin requirements";
$lang->story->syncTip = "The twin story are synchronized except for product, branch, module, plan, and stage. After the twin relationship is dissolved, they are no longer synchronized.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
+2
View File
@@ -93,6 +93,8 @@ $lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
$lang->story->float = "『%s』should be positive number, decimals included.";
$lang->story->saveDraftSuccess = 'Save as draft succeeded.';
$lang->story->changeSyncTip = "The modification of this story will be synchronized to the following twin requirements";
$lang->story->syncTip = "The twin story are synchronized except for product, branch, module, plan, and stage. After the twin relationship is dissolved, they are no longer synchronized.";
$lang->story->id = 'ID';
$lang->story->parent = 'Mẹ';
+2
View File
@@ -95,6 +95,8 @@ $lang->story->successToTask = '批量转任务成功';
$lang->story->storyRound = '第 %s 轮估算';
$lang->story->float = "『%s』应当是正数,可以是小数。";
$lang->story->saveDraftSuccess = '存为草稿成功';
$lang->story->changeSyncTip = "该需求的修改会同步到如下的孪生需求";
$lang->story->syncTip = "孪生需求间除产品、分支 、模块、计划、阶段外均同步,孪生关系解除后不再同步";
$lang->story->id = '编号';
$lang->story->parent = '父需求';
+18
View File
@@ -73,6 +73,24 @@
<?php echo $this->fetch('file', 'buildform');?>
</td>
</tr>
<tr id='siblingTh'>
<td colspan='2'>
<?php echo $lang->story->changeSyncTip;?>
<span data-toggle='tooltip' data-placement='right' title='<?php echo $lang->story->syncTip;?>'><i class='icon-help'></i></span>
</td>
</tr>
<tr id='siblingTd'>
<td colspan='2'>
<ul class='list-unstyled'>
<?php foreach($siblings as $siblingID => $sibling):?>
<li>
<span class='label label-outline label-badge'><?php echo $branches[$sibling->branch];?></span>
<?php echo $siblingID . ' ' . $sibling->title;?>
</li>
<?php endforeach;?>
</ul>
</td>
</tr>
<tr>
<th><?php echo $lang->story->checkAffection;?></th>
<td><?php include './affected.html.php';?></td>
+18
View File
@@ -98,6 +98,24 @@
</div>
<?php endif;?>
<?php $this->printExtendFields($story, 'div', 'position=left');?>
<div class='detail' id='siblingList'>
<div class='detail-title'>
<?php echo $lang->story->changeSyncTip;?>
<span data-toggle='tooltip' data-placement='right' title='<?php echo $lang->story->syncTip;?>'><i class='icon-help'></i></span>
</div>
<div class='form-group'>
<div>
<ul class='list-unstyled'>
<?php foreach($siblings as $siblingID => $sibling):?>
<li>
<span class='label label-outline label-badge'><?php echo $branchTagOption[$sibling->branch];?></span>
<?php echo $siblingID . ' ' . $sibling->title;?>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>
<div class='detail'>
<div class='detail-title'><?php echo $lang->story->comment;?></div>
<div class='form-group'>