add at_project field to user_card

This commit is contained in:
iIronside
2022-12-19 16:21:19 +03:00
parent b6d958bdc0
commit 3c922a6627
7 changed files with 74 additions and 3 deletions

View File

@ -8,6 +8,10 @@
$menuItems[] = ['label' => $status, 'icon' => 'id-card', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key], 'active' => \Yii::$app->controller->id == 'user-card',];
}
$busynessArr = \common\models\UserCard::getBusyness();
foreach ($busynessArr as $key => $busyness) {
$menuItems[] = ['label' => $busyness, 'icon' => 'id-card', 'url' => ['/card/user-card?UserCardSearch[at_project]=' . $key], 'active' => \Yii::$app->controller->id == 'user-card'];
}
$projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT);
$projectItems = [['label' => 'Все', 'icon' => 'cubes', 'url' => ['/project/project'], 'active' => \Yii::$app->controller->id == 'project']];
foreach ($projectStatuses as $key => $status) {