* add source note when create a story.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE `zt_story` ADD `sourceNote` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `source`;
|
||||
@@ -118,6 +118,7 @@ class story extends control
|
||||
|
||||
/* Init vars. */
|
||||
$source = '';
|
||||
$sourceNote = '';
|
||||
$pri = 0;
|
||||
$estimate = '';
|
||||
$title = '';
|
||||
@@ -177,6 +178,7 @@ class story extends control
|
||||
$this->view->plans = $this->loadModel('productplan')->getPairs($productID, $branch, 'unexpired');
|
||||
$this->view->planID = $planID;
|
||||
$this->view->source = $source;
|
||||
$this->view->sourceNote = $sourceNote;
|
||||
$this->view->pri = $pri;
|
||||
$this->view->branch = $branch;
|
||||
$this->view->branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($productID) : array();
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang->story->product = $lang->productCommon;
|
||||
$lang->story->module = 'Module';
|
||||
$lang->story->moduleAB = 'Module';
|
||||
$lang->story->source = 'Source';
|
||||
$lang->story->sourceNote = 'Source note';
|
||||
$lang->story->fromBug = 'From bug';
|
||||
$lang->story->title = 'Title';
|
||||
$lang->story->spec = 'Spec';
|
||||
@@ -127,6 +128,8 @@ $lang->story->sourceList['user'] = 'User';
|
||||
$lang->story->sourceList['po'] = $lang->productCommon . ' Owner';
|
||||
$lang->story->sourceList['market'] = 'Market';
|
||||
$lang->story->sourceList['service'] = 'Customer service';
|
||||
$lang->story->sourceList['operation'] = 'Operation';
|
||||
$lang->story->sourceList['support'] = 'Technical support';
|
||||
$lang->story->sourceList['competitor'] = 'Competitor';
|
||||
$lang->story->sourceList['partner'] = 'Partner';
|
||||
$lang->story->sourceList['dev'] = 'Developer';
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang->story->product = "所属{$lang->productCommon}";
|
||||
$lang->story->module = '所属模块';
|
||||
$lang->story->moduleAB = '模块';
|
||||
$lang->story->source = '需求来源';
|
||||
$lang->story->sourceNote = '来源备注';
|
||||
$lang->story->fromBug = '来源Bug';
|
||||
$lang->story->title = '需求名称';
|
||||
$lang->story->spec = '需求描述';
|
||||
@@ -127,6 +128,8 @@ $lang->story->sourceList['user'] = '用户';
|
||||
$lang->story->sourceList['po'] = $lang->productCommon . '经理';
|
||||
$lang->story->sourceList['market'] = '市场';
|
||||
$lang->story->sourceList['service'] = '客服';
|
||||
$lang->story->sourceList['operation'] = '运营';
|
||||
$lang->story->sourceList['support'] = '技术支持';
|
||||
$lang->story->sourceList['competitor'] = '竞争对手';
|
||||
$lang->story->sourceList['partner'] = '合作伙伴';
|
||||
$lang->story->sourceList['dev'] = '开发人员';
|
||||
|
||||
@@ -72,6 +72,8 @@
|
||||
<div class='input-group'>
|
||||
<span class='input-group-addon'><?php echo $lang->story->source?></span>
|
||||
<?php echo html::select('source', $lang->story->sourceList, $source, "class='form-control'");?>
|
||||
<span class='input-group-addon fix-border'><?php echo $lang->comment?></span>
|
||||
<?php echo html::input('sourceNote', $sourceNote, "class='form-control'");?>
|
||||
</div>
|
||||
</td>
|
||||
<?php endif;?>
|
||||
|
||||
@@ -164,6 +164,10 @@
|
||||
<th><?php echo $lang->story->source;?></th>
|
||||
<td><?php echo $lang->story->sourceList[$story->source];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->sourceNote;?></th>
|
||||
<td id='sourceNote'><?php echo $story->sourceNote;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->status;?></th>
|
||||
<td class='story-<?php echo $story->status?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
|
||||
Reference in New Issue
Block a user