Commit 3f7185f2ff1af7ff00d61c1db200e1fc6ef6e4fa
1 parent
76a1b0fe
test
Showing
7 changed files
with
18 additions
and
0 deletions
Show diff stats
common/models/Portfolio.php
frontend/views/accounts/_gallery_form.php
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | * @var Gallery $gallery | 3 | * @var Gallery $gallery |
4 | * @var User $user | 4 | * @var User $user |
5 | */ | 5 | */ |
6 | + use common\components\Request; | ||
6 | use common\models\Gallery; | 7 | use common\models\Gallery; |
7 | use common\models\User; | 8 | use common\models\User; |
8 | use common\widgets\ImageUploader; | 9 | use common\widgets\ImageUploader; |
frontend/views/accounts/_portfolio_form.php
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | * @var integer[] $specializations | 4 | * @var integer[] $specializations |
5 | * @var string[] $galleries | 5 | * @var string[] $galleries |
6 | */ | 6 | */ |
7 | + use common\components\Request; | ||
7 | use common\models\Option; | 8 | use common\models\Option; |
8 | use common\models\Portfolio; | 9 | use common\models\Portfolio; |
9 | use common\models\Specialization; | 10 | use common\models\Specialization; |
frontend/views/accounts/_projects_form.php
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | * @var Payment[] $payment | 5 | * @var Payment[] $payment |
6 | * @var string[] $projects | 6 | * @var string[] $projects |
7 | */ | 7 | */ |
8 | + use common\components\Request; | ||
8 | use common\models\Currency; | 9 | use common\models\Currency; |
9 | use common\models\Payment; | 10 | use common\models\Payment; |
10 | use common\models\Project; | 11 | use common\models\Project; |
frontend/views/accounts/_team_form.php
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | * @var string[] $department | 4 | * @var string[] $department |
5 | * @var string[] $country | 5 | * @var string[] $country |
6 | */ | 6 | */ |
7 | + use common\components\Request; | ||
7 | use common\models\Team; | 8 | use common\models\Team; |
8 | use common\widgets\ImageUploader; | 9 | use common\widgets\ImageUploader; |
9 | use kartik\select2\Select2; | 10 | use kartik\select2\Select2; |
frontend/views/accounts/_vacancy_form.php
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | * @var string[] $currencies | 5 | * @var string[] $currencies |
6 | * @var Specialization[] $specializations | 6 | * @var Specialization[] $specializations |
7 | */ | 7 | */ |
8 | + use common\components\Request; | ||
8 | use common\models\Employment; | 9 | use common\models\Employment; |
9 | use common\models\Specialization; | 10 | use common\models\Specialization; |
10 | use common\models\Vacancy; | 11 | use common\models\Vacancy; |
frontend/views/accounts/portfolio.php
@@ -63,6 +63,18 @@ | @@ -63,6 +63,18 @@ | ||
63 | ], | 63 | ], |
64 | 'view_count', | 64 | 'view_count', |
65 | [ | 65 | [ |
66 | + 'value' => function($model, $key, $index, $column) { | ||
67 | + return 0; | ||
68 | + }, | ||
69 | + 'label' => 'Рейтинг', | ||
70 | + ], | ||
71 | + [ | ||
72 | + 'value' => function($model, $key, $index, $column) { | ||
73 | + return 0; | ||
74 | + }, | ||
75 | + 'label' => 'Комментарии', | ||
76 | + ], | ||
77 | + [ | ||
66 | 'attribute' => 'specializationString', | 78 | 'attribute' => 'specializationString', |
67 | ], | 79 | ], |
68 | [ | 80 | [ |