* Adjust page style when no data in compile browse.

This commit is contained in:
holan20180123
2021-08-05 11:13:34 +08:00
parent 894e897447
commit a3a24aaff2
2 changed files with 17 additions and 1 deletions
+6 -1
View File
@@ -19,7 +19,11 @@
?>
</div>
</div>
<?php if(empty($buildList)):?>
<div class="table-empty-tip">
<p><span class="text-muted"><?php echo $lang->noData;?></span></p>
</div>
<?php else:?>
<div id='mainContent'>
<form class='main-table' id='ajaxForm' method='post'>
<table id='buildList' class='table has-sort-head table-fixed'>
@@ -67,4 +71,5 @@
<?php endif; ?>
</form>
</div>
<?php endif;?>
<?php include '../../common/view/footer.html.php';?>
+11
View File
@@ -20,6 +20,16 @@
<?php if(common::hasPriv('job', 'create')) common::printLink('job', 'create', "", "<i class='icon icon-plus'></i> " . $lang->job->create, '', "class='btn btn-primary'");?>
</div>
</div>
<?php if(empty($jobList)):?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->noData;?></span>
<?php if(common::hasPriv('job', 'create')):?>
<?php echo html::a($this->createLink('job', 'create'), "<i class='icon icon-plus'></i> " . $lang->job->create, '', "class='btn btn-info'");?>
<?php endif;?>
</p>
</div>
<?php else:?>
<div id='mainContent'>
<form class='main-table' id='ajaxForm' method='post'>
<table id='jobList' class='table has-sort-head table-fixed'>
@@ -71,4 +81,5 @@
<?php endif;?>
</form>
</div>
<?php endif;?>
<?php include '../../common/view/footer.html.php';?>