update Staff full CRUD

This commit is contained in:
2020-10-10 16:11:19 +07:00
parent 6272bec1b7
commit 2a8b009c12
18 changed files with 1050 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ use yii\widgets\ActiveForm;
<nav class="navbar navbar-static-top" role="navigation">
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav" style="font-size: 20px;">
<li class="<?php if (in_array($this->context->id, ['department'])) echo "active"; ?>">
<li class="<?php if (in_array($this->context->id, ['department', 'staff'])) echo "active"; ?>">
<a href="<?php echo \yii\helpers\Url::to(['/department']); ?>">
Nhân sự
</a>

View File

@@ -13,10 +13,10 @@
],
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
];
if (in_array($this->context->id, ['department'])) {
if (in_array($this->context->id, ['department', 'staff'])) {
$items = [
['label' => 'Phòng ban', 'url' => ['/department'], 'icon' => 'building'],
['label' => 'Nhân viên', 'url' => ['/dashboard'], 'icon' => 'users'],
['label' => 'Nhân viên', 'url' => ['/staff'], 'icon' => 'users'],
['label' => 'Đăng ký thẻ', 'url' => ['/dashboard'], 'icon' => 'credit-card']
];
}