This commit is contained in:
wangyidong
2022-10-28 15:25:17 +08:00
parent eac8590153
commit 7050943933
2 changed files with 15 additions and 2 deletions
+3
View File
@@ -551,6 +551,7 @@ class project extends control
$whitelist = '';
$acl = 'private';
$auth = 'extend';
$multiple = 1;
$hasProduct = 1;
$shadow = 0;
$products = array();
@@ -566,6 +567,7 @@ class project extends control
$whitelist = $copyProject->whitelist;
$acl = $copyProject->acl;
$auth = $copyProject->auth;
$multiple = $copyProject->multiple;
$hasProduct = $copyProject->hasProduct;
$programID = $copyProject->parent;
$model = $copyProject->model;
@@ -614,6 +616,7 @@ class project extends control
$this->view->acl = $acl;
$this->view->auth = $auth;
$this->view->whitelist = $whitelist;
$this->view->multiple = $multiple;
$this->view->hasProduct = $hasProduct;
$this->view->copyProjectID = $copyProjectID;
$this->view->programList = $this->program->getParentPairs();
+12 -2
View File
@@ -76,12 +76,22 @@
<?php if($model != 'waterfall'):?>
<tr>
<th><?php echo $lang->project->multiple;?></th>
<td colspan='3'><?php echo nl2br(html::radio('multiple', $lang->project->multipleList, '1'));?></td>
<td colspan='3'>
<?php
echo nl2br(html::radio('multiple', $lang->project->multipleList, $multiple, $copyProjectID ? 'disabled' : ''));
if($copyProjectID) echo html::hidden('multiple', $multiple);
?>
</td>
</tr>
<?php endif;?>
<tr>
<th id='projectType'><?php echo $lang->project->type;?></th>
<td><?php echo html::radio('hasProduct', $lang->project->projectTypeList, $hasProduct, $copyProjectID ? 'disabled' : '');?></td>
<td>
<?php
echo html::radio('hasProduct', $lang->project->projectTypeList, $hasProduct, $copyProjectID ? 'disabled' : '');
if($copyProjectID) echo html::hidden('hasProduct', $hasProduct);
?>
</td>
</tr>
<tr>
<th><?php echo $lang->project->PM;?></th>