2018-10-11 11:15:09 +03:00
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
|
<section class="sidebar">
|
2018-12-03 12:10:39 +03:00
|
|
|
|
<?php
|
|
|
|
|
$userStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROFILE);
|
|
|
|
|
$menuItems = [['label' => 'Все', 'icon' => 'user', 'url' => ['/card/user-card']]];
|
|
|
|
|
foreach($userStatuses as $key => $status){
|
|
|
|
|
$menuItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key]];
|
|
|
|
|
}
|
|
|
|
|
?>
|
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' => [
|
|
|
|
|
['label' => 'Статусы', 'icon' => 'anchor', 'url' => ['/settings/status']],
|
|
|
|
|
['label' => 'Доп. поля', 'icon' => 'file-text-o', 'url' => ['/settings/additional-fields']],
|
|
|
|
|
['label' => 'Должность', 'icon' => 'spotify', 'url' => ['/settings/position']],
|
|
|
|
|
['label' => 'Навыки', 'icon' => 'flask', 'url' => ['/settings/skill']],
|
|
|
|
|
]
|
|
|
|
|
],
|
2018-12-03 12:10:39 +03:00
|
|
|
|
[
|
|
|
|
|
'label' => 'Профили', 'icon' => 'users', 'url' => '#',
|
|
|
|
|
'items' => $menuItems,
|
|
|
|
|
],
|
2018-10-11 11:15:09 +03:00
|
|
|
|
['label' => 'Пректы', 'icon' => 'files-o', 'url' => ['/project/project']],
|
2018-10-11 17:24:47 +03:00
|
|
|
|
['label' => 'Компании', 'icon' => 'files-o', 'url' => ['/company/company']],
|
2018-11-21 17:02:14 +03:00
|
|
|
|
[
|
|
|
|
|
'label' => 'Hh.ru', 'icon' => 'user-circle', 'url' => '#',
|
|
|
|
|
'items' => [
|
|
|
|
|
['label' => 'Компании', 'icon' => 'building', 'url' => ['/hh/hh']],
|
|
|
|
|
['label' => 'Вакансии', 'icon' => 'user-md', 'url' => ['/hh/hh-job']],
|
|
|
|
|
],
|
|
|
|
|
]
|
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>
|
|
|
|
|
|
|
|
|
|
</aside>
|