fix cp project

This commit is contained in:
lanzongjun
2022-08-08 18:18:09 +08:00
parent bc0d121150
commit 15cce6ebfa
7 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -33,4 +33,4 @@
.modal-flex{display:flex; justify-content:space-around;}
.modal-flex .col-md-4{padding-right: 5px; padding-left: 5px;}
.change-background-gray{background-color: #F8F8F8;}
.change-background-blue{background-color: #F5F9FF;}
.change-background-blue{background-color: #F5F9FF;}
-1
View File
@@ -1083,7 +1083,6 @@ class projectModel extends model
->stripTags($this->config->project->editor->create['id'], $this->config->allowedTags)
->remove('products,branch,plans,delta,newProduct,productName,future,contactListMenu,teamMembers')
->get();
if(!isset($this->config->setCode) or $this->config->setCode == 1) unset($project->code);
$linkedProductsCount = 0;
+4 -5
View File
@@ -35,7 +35,11 @@
<h2><?php echo $createTitle;?></h2>
<?php if(!commonModel::isTutorialMode()): ?>
<div class="pull-right btn-toolbar">
<?php if($config->edition != 'max' || $model == 'kanban'):?>
<button type='button' class='btn btn-link' data-toggle='modal' data-target='#copyProjectModal'><?php echo html::icon($lang->icons['copy'], 'muted') . ' ' . $lang->project->copy;?></button>
<?php else: ?>
<button type='button' class='btn btn-link' data-toggle='modal' data-target='#maxCopyProjectModal'><?php echo html::icon($lang->icons['copy'], 'muted') . ' ' . $lang->project->copy;?></button>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
@@ -225,12 +229,7 @@
<?php foreach ($copyProjects as $id => $name):?>
<?php $active = ($copyProjectID == $id) ? ' active' : '';?>
<div class='col-md-4 col-sm-6'>
<?php if($config->edition != 'max' || $model == 'kanban'):?>
<a href='javascript:;' data-id='<?php echo $id;?>' class='nobr <?php echo $active;?>'><?php echo html::icon($lang->icons['project'], 'text-muted') . ' ' . $name;?></a>
<?php else: ?>
<a data-id='<?php echo $id;?>' class='nobr <?php echo $active;?>' data-toggle='modal' data-target='#copyProjectConfirmModal'><?php echo html::icon($lang->icons['project'], 'text-muted') . ' ' . $name;?></a>
<?php echo html::hidden('copyProjectID', 0); ?>
<?php endif; ?>
</div>
<?php endforeach;?>
</div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1011 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB