update Schedule full CRUD

This commit is contained in:
2020-10-13 17:31:53 +07:00
parent 03e03c7e13
commit 620dfc75c2
15 changed files with 908 additions and 19 deletions

View File

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

View File

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