This commit is contained in:
lanzongjun
2022-09-22 14:49:33 +08:00
parent 45aac919b3
commit c4c57794ea
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -34,7 +34,11 @@
<?php $class = $mode == 'new' ? "class='hide'" : "";?>
<tr id="selectDefaultProgram" <?php echo $class;?>>
<td></td>
<td><?php echo html::select('program', $program, $programID, "class='form-control chosen'");?></td>
<td>
<?php
$disabled = $mode == 'lean' ? "disabled" : '';
echo html::select('program', $program, $programID, "class='form-control chosen' $disabled" );?>
</td>
</tr>
<tr>
<td></td>
+5 -1
View File
@@ -73,11 +73,15 @@
<td><?php echo html::input('code', $code, "class='form-control' required");?></td>
</tr>
<?php endif;?>
<?php if($model == 'scrum' or $model == 'kanban'):?>
<?php if(!isset($this->config->projectMode) and $model != 'waterfall'):?>
<tr>
<th><?php echo $lang->project->noSprint;?></th>
<td colspan='3'><?php echo nl2br(html::radio('noSprint', $lang->project->noSprintList, 0));?></td>
</tr>
<?php elseif($model == 'waterfall'):?>
<?php echo html::hidden('noSprint', 0);?>
<?php else:?>
<?php echo html::hidden('noSprint', 1);?>
<?php endif;?>
<tr>
<th><?php echo $lang->project->PM;?></th>
+5 -1
View File
@@ -77,11 +77,15 @@
<td><?php echo html::input('code', $project->code, "class='form-control' required");?></td>
</tr>
<?php endif;?>
<?php if($model == 'scrum' or $model == 'kanban'): ?>
<?php if(!isset($this->config->projectMode) and $model != 'waterfall'):?>
<tr>
<th><?php echo $lang->project->noSprint;?></th>
<td colspan='3'><?php echo nl2br(html::radio('noSprint', $lang->project->noSprintList, $project->noSprint, 'disabled'));?></td>
</tr>
<?php elseif($model == 'waterfall'):?>
<?php echo html::hidden('noSprint', 0);?>
<?php else:?>
<?php echo html::hidden('noSprint', 1);?>
<?php endif;?>
<tr>
<th><?php echo $lang->project->PM;?></th>