Merge branch 'sprint/285' into 'master'

Sprint/285

See merge request easycorp/zentaopms!6982
This commit is contained in:
王怡栋
2023-02-17 02:00:05 +00:00
2 changed files with 8 additions and 12 deletions
+3 -1
View File
@@ -4,4 +4,6 @@
.panel-sm .panel-body {padding: 10px;}
#mainMenu .input-control {display: flex; width: 200px;}
#mainMenu .input-control .form-name {margin: 8px 10px; white-space: pre;}
.table-import {padding-top: 6px;}
.table-import {padding: 6px 5px 5px 5px; }
.shadow-sm {box-shadow: 0 1px 1px rgb(0 0 0 / 5%), 0 2px 6px 0 rgb(0 0 0 / 25%)}
.flex-center {display: flex; align-items: center; justify-content: center;}
+5 -11
View File
@@ -33,9 +33,8 @@
<?php common::printLink('holiday', 'create', "", "<i class='icon icon-plus'> </i>" . $lang->holiday->create, '', "class='btn btn-primary iframe'", '', true)?>
</div>
</div>
<?php if(!empty($holidays)):?>
<table class='table has-sort-head'>
<thead>
<thead class="shadow-sm">
<tr>
<th class='c-name'><?php echo $lang->holiday->name;?></th>
<th class='c-time-limit'><?php echo $lang->holiday->holiday;?></th>
@@ -44,6 +43,7 @@
<th class='c-actions-2'><?php echo $lang->actions;?></th>
</tr>
</thead>
<?php if(!empty($holidays)):?>
<?php foreach($holidays as $holiday):?>
<tr>
<td><?php echo $holiday->name;?></td>
@@ -56,17 +56,11 @@
</td>
</tr>
<?php endforeach;?>
<?php endif;?>
</table>
<?php else:?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->holiday->emptyTip;?></span>
</p>
</div>
<?php endif;?>
<?php if(!common::checkNotCN() and common::hasPriv('holiday', 'import') and $currentYear >= date('Y')):?>
<div class="table-footer">
<div class="table-import">
<div class="table-footer flex-center">
<div class="table-import shadow-sm">
<?php echo sprintf($lang->holiday->importTip, html::a(helper::createLink('holiday', 'import', "year=$currentYear", '', true), $lang->import, '', "class='text-primary iframe' data-width='400px'"));?>
</div>
</div>