* Adjust type and endList of sprint.

This commit is contained in:
guanxiying
2019-11-22 14:45:33 +08:00
parent 678487a9da
commit 0665deed72
3 changed files with 30 additions and 0 deletions
+25
View File
@@ -1117,6 +1117,18 @@ class project extends control
}
}
if(strpos($this->config->custom->productProject, '_2'))
{
$this->view->isSprint = true;
unset($this->lang->project->typeList['waterfall']);
unset($this->lang->project->typeList['ops']);
unset($this->lang->project->endList[62]);
unset($this->lang->project->endList[93]);
unset($this->lang->project->endList[186]);
unset($this->lang->project->endList[365]);
}
$projectID = key($this->projects);
if($this->session->project) $projectID = $this->session->project;
$this->project->setMenu($this->projects, $projectID);
@@ -1206,6 +1218,19 @@ class project extends control
$productPlans[$product->id] = $this->productplan->getPairs($product->id);
}
if(strpos($this->config->custom->productProject, '_2'))
{
$this->view->isSprint = true;
unset($this->lang->project->typeList['waterfall']);
unset($this->lang->project->typeList['ops']);
unset($this->lang->project->endList[62]);
unset($this->lang->project->endList[93]);
unset($this->lang->project->endList[186]);
unset($this->lang->project->endList[365]);
}
$this->view->title = $title;
$this->view->position = $position;
$this->view->projects = $projects;
+3
View File
@@ -77,11 +77,13 @@
<th><?php echo $lang->project->teamname;?></th>
<td><?php echo html::input('team', $team, "class='form-control'");?></td><td></td><td></td>
</tr>
<?php if(!$isSprint):?>
<tr>
<th><?php echo $lang->project->type;?></th>
<td><?php echo html::select('type', $lang->project->typeList, '', "class='form-control' onchange='showTypeTips()'");?></td>
<td class='muted' colspan='2'><div class='type-tips'><?php echo $lang->project->typeDesc;?></div></td>
</tr>
<?php endif;?>
<tr class='hide'>
<th><?php echo $lang->project->status;?></th>
<td><?php echo html::hidden('status', 'wait');?></td>
@@ -154,6 +156,7 @@
<td colspan='4' class='text-center form-actions'>
<?php echo html::submitButton();?>
<?php echo html::backButton();?>
<?php if($isSprint) echo html::hidden('type', 'sprint');?>
</td>
</tr>
</table>
+2
View File
@@ -60,10 +60,12 @@
</div>
</td>
</tr>
<?php if(!$isSprint):?>
<tr>
<th><?php echo $lang->project->type;?></th>
<td><?php echo html::select('type', $lang->project->typeList, $project->type, "class='form-control'");?></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->project->teamname;?></th>
<td><?php echo html::input('team', $project->team, "class='form-control'");?></td>