+ can edit pri and estimate now.

+ add the template of story.
This commit is contained in:
wangchunsheng
2010-02-08 09:52:04 +00:00
parent e0c464aa23
commit 6448a88b77
6 changed files with 20 additions and 3 deletions

View File

@@ -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 = '预计工时';

View File

@@ -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')

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>