* Fix create project in my module.

This commit is contained in:
holan20180123
2021-03-08 16:48:24 +08:00
parent bcd3545ded
commit f64e0a56c0
+5 -1
View File
@@ -26,8 +26,12 @@
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->project->empty;?></span>
<?php if(common::hasPriv('project', 'createGuide')):?>
<?php if(isset($this->config->maxVersion) and common::hasPriv('project', 'createGuide')):?>
<?php echo html::a($this->createLink('project', 'createGuide'), "<i class='icon icon-plus'></i> " . $lang->my->createProgram, '', "class='btn btn-info' data-toggle=modal");?>
<?php elseif($this->config->systemMode == 'new' and common::hasPriv('project', 'create')):?>
<?php echo html::a($this->createLink('project', 'create'), '<i class="icon icon-plus"></i>' . $lang->project->create, '', 'class="btn btn-info" data-toggle="modal" data-target="#guideDialog"');?>
<?php elseif($this->config->systemMode == 'classic' and common::hasPriv('execution', 'create')):?>
<?php echo html::a($this->createLink('execution', 'create'), '<i class="icon icon-plus"></i>' . $lang->execution->create, '', 'class="btn btn-info"');?>
<?php endif;?>
</p>
</div>