update gán lịch trình cho nhân viên

This commit is contained in:
2020-10-14 14:00:01 +07:00
parent 620dfc75c2
commit ed061f5994
16 changed files with 2626 additions and 100 deletions

View File

@@ -30,7 +30,7 @@ use yii\widgets\ActiveForm;
Thiết bị
</a>
</li>
<li class="<?php if (in_array($this->context->id, ['schedule'])) echo "active"; ?>">
<li class="<?php if (in_array($this->context->id, ['schedule', 'assign'])) echo "active"; ?>">
<a href="<?php echo \yii\helpers\Url::to(['/schedule']); ?>">
Kiểm soát truy cập
</a>

View File

@@ -27,10 +27,10 @@
['label' => 'Tìm kiếm thiết bị', 'url' => ['/device/search'], 'icon' => 'search']
];
}
if (in_array($this->context->id, ['schedule'])) {
if (in_array($this->context->id, ['schedule', 'assign'])) {
$items = [
['label' => 'Lịch trình', 'url' => ['/schedule'], 'icon' => 'calendar'],
['label' => 'Cấp quyền truy cập', 'url' => ['/device'], 'icon' => 'cogs']
['label' => 'Cấp quyền truy cập', 'url' => ['/assign'], 'icon' => 'cogs']
];
}
?>