update CardRegister full CRUD
This commit is contained in:
@@ -20,8 +20,8 @@ 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', 'staff'])) echo "active"; ?>">
|
||||
<a href="<?php echo \yii\helpers\Url::to(['/department']); ?>">
|
||||
<li class="<?php if (in_array($this->context->id, ['department', 'staff', 'card-register'])) echo "active"; ?>">
|
||||
<a href="<?php echo \yii\helpers\Url::to(['/staff']); ?>">
|
||||
Nhân sự
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
],
|
||||
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
|
||||
];
|
||||
if (in_array($this->context->id, ['department', 'staff'])) {
|
||||
if (in_array($this->context->id, ['department', 'staff', 'card-register'])) {
|
||||
$items = [
|
||||
['label' => 'Phòng ban', 'url' => ['/department'], 'icon' => 'building'],
|
||||
['label' => 'Nhân viên', 'url' => ['/staff'], 'icon' => 'users'],
|
||||
['label' => 'Đăng ký thẻ', 'url' => ['/dashboard'], 'icon' => 'credit-card']
|
||||
['label' => 'Đăng ký thẻ', 'url' => ['/card-register'], 'icon' => 'credit-card']
|
||||
];
|
||||
}
|
||||
if (in_array($this->context->id, ['area', 'device'])) {
|
||||
|
||||
Reference in New Issue
Block a user