fbdb1f1c
Yarik
test
|
1
2
|
<?php
|
38ffb9db
Yarik
test
|
3
4
5
|
use common\models\Specialization;
use common\models\User;
use yii\data\ActiveDataProvider;
|
76f36646
Yarik
test
|
6
7
8
|
use \yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ListView;
|
f0a961be
Yarik
test
|
9
|
use yii\widgets\Pjax;
|
76f36646
Yarik
test
|
10
|
|
38ffb9db
Yarik
test
|
11
12
13
14
15
16
|
/**
* @var yii\web\View $this
* @var User $company
* @var ActiveDataProvider $portfolio
* @var array $filters
* @var int $filter_id
|
76f36646
Yarik
test
|
17
18
19
|
*/
$this->params[ 'company' ] = $company;
$this->title = 'My Yii Application';
|
fbdb1f1c
Yarik
test
|
20
21
|
?>
<div class="performer-vacancy-vacant-title-reclam-wr style">
|
d36bdac6
Administrator
17.02.16
|
22
|
|
f0a961be
Yarik
test
|
23
24
25
|
<?php
Pjax::begin();
?>
|
fbdb1f1c
Yarik
test
|
26
|
<div class="portfolio-project-wr style">
|
38ffb9db
Yarik
test
|
27
28
|
<div class="workplace-title style">
<p><?= Yii::t('app', 'Projects') ?>: <?= $portfolio->totalCount ?></p></div>
|
fbdb1f1c
Yarik
test
|
29
|
<div class="portfolio-project-tags style">
|
38ffb9db
Yarik
test
|
30
|
<?= Html::a("Все (".count($company->portfolios).")", [
|
f0a961be
Yarik
test
|
31
32
|
'company/portfolio',
'company_id' => $company->id,
|
38ffb9db
Yarik
test
|
33
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
76f36646
Yarik
test
|
34
|
], [ 'class' => !isset( $filter_id ) || empty( $filter_id ) ? "active-tag" : "" ]); ?>
|
d36bdac6
Administrator
17.02.16
|
35
|
<a href="#" class="active-tag"></a>
|
38ffb9db
Yarik
test
|
36
37
|
<?php foreach($filters as $filter) {
echo Html::a("{$filter['specialization_name']} ({$filter['count']})", Url::toRoute([
|
76f36646
Yarik
test
|
38
|
'company/portfolio-filter',
|
f0a961be
Yarik
test
|
39
|
'company_id' => $company->id,
|
38ffb9db
Yarik
test
|
40
41
42
43
|
'filter' => $filter['specialization_id'],
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
]), [ 'class' => isset( $filter_id ) && $filter['specialization_id'] == $filter_id ? "active-tag" : "" ]);
} ?>
|
d36bdac6
Administrator
17.02.16
|
44
|
|
fbdb1f1c
Yarik
test
|
45
46
|
</div>
</div>
|
d36bdac6
Administrator
17.02.16
|
47
|
|
fbdb1f1c
Yarik
test
|
48
49
|
<div class="style">
<div class="portfolio-project-blocks-wrapper">
|
76f36646
Yarik
test
|
50
|
<?= ListView::widget([
|
d36bdac6
Administrator
17.02.16
|
51
|
'dataProvider' => $portfolio,
|
76f36646
Yarik
test
|
52
53
54
55
|
'itemView' => '_portfolio_list_view',
'layout' => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>",
'viewParams' => [ 'parent_view' => $this ],
]); ?>
|
fbdb1f1c
Yarik
test
|
56
57
58
|
</div>
</div>
|
f0a961be
Yarik
test
|
59
60
61
|
<?php
Pjax::end();
?>
|
d36bdac6
Administrator
17.02.16
|
62
|
|
fbdb1f1c
Yarik
test
|
63
|
</div>
|