+ can edit pri and estimate now.
+ add the template of story.
This commit is contained in:
@@ -100,6 +100,7 @@ $lang->story->replease = '发布计划';
|
||||
$lang->story->bug = '相关bug';
|
||||
$lang->story->title = '需求名称';
|
||||
$lang->story->spec = '需求描述';
|
||||
$lang->story->specNote = "建议的需求模板:<br />作为一个<某种类型的用户><br />我要<达成某些目的><br />我这么做的原因是<开发的价值>";
|
||||
$lang->story->type = '需求类型 ';
|
||||
$lang->story->pri = '优先级';
|
||||
$lang->story->estimate = '预计工时';
|
||||
|
||||
@@ -164,7 +164,7 @@ class storyModel extends model
|
||||
$this->dao->update(TABLE_STORY)
|
||||
->data($story)
|
||||
->autoCheck()
|
||||
->check('title', 'notempty')
|
||||
->batchCheck('title,estimate', 'notempty')
|
||||
->checkIF($story->closedBy, 'closedReason', 'notempty')
|
||||
->checkIF($story->status == 'closed', 'stage', 'notempty')
|
||||
->checkIF($story->closedReason == 'duplicate', 'duplicateStory', 'notempty')
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->spec;?></th>
|
||||
<td><?php echo html::textarea('spec', $story->spec, 'rows=5 class="area-1"');?></td>
|
||||
<td><?php echo html::textarea('spec', $story->spec, 'rows=5 class="area-1"');?><br /> <?php echo $lang->story->specNote;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->comment;?></th>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->spec;?></th>
|
||||
<td><textarea name='spec' rows='8' class='text-1'></textarea></td>
|
||||
<td><textarea name='spec' rows='8' class='text-1'></textarea><br /><?php echo $lang->story->specNote;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><nobr><?php echo $lang->story->mailto;?></nobr></th>
|
||||
|
||||
@@ -76,6 +76,14 @@
|
||||
<td><?php echo html::select('stage', $lang->story->stageList, $story->stage, 'class=select-1');?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->pri;?></td>
|
||||
<td><?php echo html::select('pri', $lang->story->priList, $story->pri, 'class=select-1');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->estimate;?></td>
|
||||
<td><?php echo html::input('estimate', $story->estimate, 'class=text-1');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
|
||||
@@ -96,6 +96,14 @@
|
||||
<td class='rowhead'><?php echo $lang->story->stage;?></td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->pri;?></td>
|
||||
<td><?php echo $lang->story->priList[$story->pri];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->estimate;?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user