2018-10-11 11:15:09 +03:00
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
|
<section class="sidebar">
|
2018-12-03 12:10:39 +03:00
|
|
|
|
<?php
|
2019-11-15 13:25:48 +03:00
|
|
|
|
|
2018-12-03 12:10:39 +03:00
|
|
|
|
$userStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROFILE);
|
|
|
|
|
$menuItems = [['label' => 'Все', 'icon' => 'user', 'url' => ['/card/user-card']]];
|
2019-11-15 13:25:48 +03:00
|
|
|
|
foreach ($userStatuses as $key => $status) {
|
2018-12-03 12:10:39 +03:00
|
|
|
|
$menuItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key]];
|
|
|
|
|
}
|
2019-07-03 18:06:01 +03:00
|
|
|
|
$projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT);
|
2019-12-06 13:28:22 +03:00
|
|
|
|
$projectItems = [['label' => 'Все', 'icon' => 'cubes', 'url' => ['/project/project']]];
|
2019-11-15 13:25:48 +03:00
|
|
|
|
foreach ($projectStatuses as $key => $status) {
|
2019-07-03 18:06:01 +03:00
|
|
|
|
$projectItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/project/project?ProjectSearch[status]=' . $key]];
|
|
|
|
|
}
|
2018-12-03 12:10:39 +03:00
|
|
|
|
?>
|
2018-10-11 11:15:09 +03:00
|
|
|
|
|
|
|
|
|
<?= dmstr\widgets\Menu::widget(
|
|
|
|
|
[
|
|
|
|
|
'options' => ['class' => 'sidebar-menu tree', 'data-widget' => 'tree'],
|
|
|
|
|
'items' => [
|
2018-10-12 14:52:08 +03:00
|
|
|
|
[
|
|
|
|
|
'label' => 'Настройки', 'icon' => 'gears', 'url' => '#',
|
|
|
|
|
'items' => [
|
2019-11-15 13:25:48 +03:00
|
|
|
|
['label' => 'Статусы', 'icon' => 'anchor', 'url' => ['/settings/status'], 'active' => \Yii::$app->controller->id == 'status'],
|
|
|
|
|
['label' => 'Доп. поля', 'icon' => 'file-text-o', 'url' => ['/settings/additional-fields'], 'active' => \Yii::$app->controller->id == 'additional-fields'],
|
|
|
|
|
['label' => 'Должность', 'icon' => 'spotify', 'url' => ['/settings/position'], 'active' => \Yii::$app->controller->id == 'position'],
|
|
|
|
|
['label' => 'Навыки', 'icon' => 'flask', 'url' => ['/settings/skill'], 'active' => \Yii::$app->controller->id == 'skill'],
|
2018-10-12 14:52:08 +03:00
|
|
|
|
]
|
|
|
|
|
],
|
2018-12-03 12:10:39 +03:00
|
|
|
|
[
|
2019-11-15 13:25:48 +03:00
|
|
|
|
'label' => 'Профили', 'icon' => 'users', 'url' => '#', 'active' => \Yii::$app->controller->id == 'user-card',
|
2018-12-03 12:10:39 +03:00
|
|
|
|
'items' => $menuItems,
|
|
|
|
|
],
|
2019-11-15 13:25:48 +03:00
|
|
|
|
[
|
2019-12-06 12:55:04 +03:00
|
|
|
|
'label' => 'Проекты', 'icon' => 'cubes', 'url' => ['#'], 'active' => \Yii::$app->controller->id == 'project',
|
2019-07-03 18:06:01 +03:00
|
|
|
|
'items' => $projectItems,
|
|
|
|
|
],
|
2019-12-06 12:55:04 +03:00
|
|
|
|
['label' => 'Компании', 'icon' => 'building', 'url' => ['/company/company'], 'active' => \Yii::$app->controller->id == 'company'],
|
2018-11-21 17:02:14 +03:00
|
|
|
|
[
|
|
|
|
|
'label' => 'Hh.ru', 'icon' => 'user-circle', 'url' => '#',
|
|
|
|
|
'items' => [
|
2019-11-15 13:25:48 +03:00
|
|
|
|
['label' => 'Компании', 'icon' => 'building', 'url' => ['/hh/hh'], 'active' => \Yii::$app->controller->id == 'hh'],
|
|
|
|
|
['label' => 'Вакансии', 'icon' => 'user-md', 'url' => ['/hh/hh-job'], 'active' => \Yii::$app->controller->id == 'hh-job'],
|
2018-11-21 17:02:14 +03:00
|
|
|
|
],
|
2019-06-21 18:05:58 +03:00
|
|
|
|
],
|
2019-11-15 13:25:48 +03:00
|
|
|
|
['label' => 'Баланс', 'icon' => 'dollar', 'url' => ['/balance/balance'], 'active' => \Yii::$app->controller->id == 'balance'],
|
|
|
|
|
['label' => 'Отпуска', 'icon' => 'plane', 'url' => ['/holiday/holiday'], 'active' => \Yii::$app->controller->id == 'holiday'],
|
2019-12-06 12:55:04 +03:00
|
|
|
|
['label' => 'Доступы', 'icon' => 'key', 'url' => ['/accesses/accesses'], 'active' => \Yii::$app->controller->id == 'accesses'],
|
|
|
|
|
['label' => 'Заметки', 'icon' => 'sticky-note', 'url' => ['/notes/notes'], 'active' => \Yii::$app->controller->id == 'notes'],
|
2020-01-17 16:28:25 +03:00
|
|
|
|
['label' => 'Календарь ДР', 'icon' => 'calendar', 'url' => ['/calendar/calendar'], 'active' => \Yii::$app->controller->id == 'calendar'],
|
2020-02-05 12:08:01 +03:00
|
|
|
|
['label' => 'Отчеты', 'icon' => 'list-alt', 'url' => ['/reports/reports'], 'active' => \Yii::$app->controller->id == 'reports'],
|
2018-10-11 11:15:09 +03:00
|
|
|
|
|
|
|
|
|
/*['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],
|
|
|
|
|
['label' => 'Debug', 'icon' => 'dashboard', 'url' => ['/debug']],
|
|
|
|
|
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
|
|
|
|
|
[
|
|
|
|
|
'label' => 'Some tools',
|
|
|
|
|
'icon' => 'share',
|
|
|
|
|
'url' => '#',
|
|
|
|
|
'items' => [
|
|
|
|
|
['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii'],],
|
|
|
|
|
['label' => 'Debug', 'icon' => 'dashboard', 'url' => ['/debug'],],
|
|
|
|
|
[
|
|
|
|
|
'label' => 'Level One',
|
|
|
|
|
'icon' => 'circle-o',
|
|
|
|
|
'url' => '#',
|
|
|
|
|
'items' => [
|
|
|
|
|
['label' => 'Level Two', 'icon' => 'circle-o', 'url' => '#',],
|
|
|
|
|
[
|
|
|
|
|
'label' => 'Level Two',
|
|
|
|
|
'icon' => 'circle-o',
|
|
|
|
|
'url' => '#',
|
|
|
|
|
'items' => [
|
|
|
|
|
['label' => 'Level Three', 'icon' => 'circle-o', 'url' => '#',],
|
|
|
|
|
['label' => 'Level Three', 'icon' => 'circle-o', 'url' => '#',],
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
],*/
|
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
) ?>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
2019-11-15 13:25:48 +03:00
|
|
|
|
</aside>
|