update Staff full CRUD
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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']
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user