project_dropdown
This commit is contained in:
parent
1a3a0aa5f8
commit
3a78821c0b
@ -1 +0,0 @@
|
|||||||
<?= $model->skill->name; ?>
|
|
@ -61,14 +61,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
'label' => 'Навыки',
|
'label' => 'Навыки',
|
||||||
'format' => 'raw',
|
'format' => 'raw',
|
||||||
'value' => function($model){
|
'value' => function($model){
|
||||||
$dataProvider = new \yii\data\ActiveDataProvider([
|
$str = '';
|
||||||
'query' => $model->getSkillValues(),
|
foreach ($model->skillValues as $item)
|
||||||
]);
|
{
|
||||||
return ListView::widget([
|
$str .= $item->skill->name . ', ';
|
||||||
'dataProvider' => $dataProvider,
|
}
|
||||||
'itemView' => '_additional',
|
$str = substr( $str, 0, -2);
|
||||||
'layout' => "{items}",
|
return $str;
|
||||||
]);
|
|
||||||
},
|
},
|
||||||
'filter' => kartik\select2\Select2::widget([
|
'filter' => kartik\select2\Select2::widget([
|
||||||
'attribute' => 'skills',
|
'attribute' => 'skills',
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace backend\modules\project\models;
|
namespace backend\modules\project\models;
|
||||||
|
|
||||||
use common\classes\Debug;
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
use yii\data\ActiveDataProvider;
|
use yii\data\ActiveDataProvider;
|
||||||
@ -19,7 +18,7 @@ class ProjectSearch extends Project
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[['id'], 'integer'],
|
[['id','status'], 'integer'],
|
||||||
[['name', 'description', 'created_at', 'updated_at'], 'safe'],
|
[['name', 'description', 'created_at', 'updated_at'], 'safe'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -61,6 +60,7 @@ class ProjectSearch extends Project
|
|||||||
// grid filtering conditions
|
// grid filtering conditions
|
||||||
$query->andFilterWhere([
|
$query->andFilterWhere([
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
|
'status' => $this->status,
|
||||||
'created_at' => $this->created_at,
|
'created_at' => $this->created_at,
|
||||||
'updated_at' => $this->updated_at,
|
'updated_at' => $this->updated_at,
|
||||||
]);
|
]);
|
||||||
|
@ -6,6 +6,11 @@
|
|||||||
foreach($userStatuses as $key => $status){
|
foreach($userStatuses as $key => $status){
|
||||||
$menuItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key]];
|
$menuItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key]];
|
||||||
}
|
}
|
||||||
|
$projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT);
|
||||||
|
$projectItems = [['label' => 'Все', 'icon' => 'files-o', 'url' => ['/project/project']]];
|
||||||
|
foreach($projectStatuses as $key => $status){
|
||||||
|
$projectItems[] = ['label' => $status, 'icon' => 'user', 'url' => ['/project/project?ProjectSearch[status]=' . $key]];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?= dmstr\widgets\Menu::widget(
|
<?= dmstr\widgets\Menu::widget(
|
||||||
@ -25,7 +30,9 @@
|
|||||||
'label' => 'Профили', 'icon' => 'users', 'url' => '#',
|
'label' => 'Профили', 'icon' => 'users', 'url' => '#',
|
||||||
'items' => $menuItems,
|
'items' => $menuItems,
|
||||||
],
|
],
|
||||||
['label' => 'Проекты', 'icon' => 'files-o', 'url' => ['/project/project']],
|
[ 'label' => 'Проекты', 'icon' => 'files-o', 'url' => ['#'],
|
||||||
|
'items' => $projectItems,
|
||||||
|
],
|
||||||
['label' => 'Компании', 'icon' => 'files-o', 'url' => ['/company/company']],
|
['label' => 'Компании', 'icon' => 'files-o', 'url' => ['/company/company']],
|
||||||
[
|
[
|
||||||
'label' => 'Hh.ru', 'icon' => 'user-circle', 'url' => '#',
|
'label' => 'Hh.ru', 'icon' => 'user-circle', 'url' => '#',
|
||||||
|
Loading…
Reference in New Issue
Block a user