fbdb1f1c
Yarik
test
|
1
2
|
<?php
|
76f36646
Yarik
test
|
3
4
5
6
7
8
9
10
11
12
|
use yii\helpers\ArrayHelper;
use \yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ListView;
/* @var $this yii\web\View
* @var $portfolio yii\data\ArrayDataProvider
*/
$this->params[ 'company' ] = $company;
$this->title = 'My Yii Application';
|
fbdb1f1c
Yarik
test
|
13
14
|
?>
<div class="performer-vacancy-vacant-title-reclam-wr style">
|
d36bdac6
Administrator
17.02.16
|
15
|
|
fbdb1f1c
Yarik
test
|
16
|
<div class="portfolio-project-wr style">
|
d36bdac6
Administrator
17.02.16
|
17
|
<div class="workplace-title style"><p>Проектов: <?= $portfolio->totalCount ?></p></div>
|
fbdb1f1c
Yarik
test
|
18
|
<div class="portfolio-project-tags style">
|
76f36646
Yarik
test
|
19
20
21
22
23
|
<?= Html::a("Все ({$count})", [
'performer/portfolio',
'performer_id' => $company->id,
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
], [ 'class' => !isset( $filter_id ) || empty( $filter_id ) ? "active-tag" : "" ]); ?>
|
d36bdac6
Administrator
17.02.16
|
24
25
|
<a href="#" class="active-tag"></a>
<?php foreach($filters as $filter): ?>
|
76f36646
Yarik
test
|
26
27
28
29
30
31
|
<?= Html::a("{$filter->specialization->specialization_name} ({$filter->count})", Url::toRoute([
'company/portfolio-filter',
'performer_id' => $company->id,
'filter' => $filter->specialization->specialization_id,
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
]), [ 'class' => isset( $filter_id ) && $filter->specialization->specialization_id == $filter_id ? "active-tag" : "" ]); ?>
|
d36bdac6
Administrator
17.02.16
|
32
33
|
<?php endforeach; ?>
|
fbdb1f1c
Yarik
test
|
34
35
|
</div>
</div>
|
d36bdac6
Administrator
17.02.16
|
36
|
|
fbdb1f1c
Yarik
test
|
37
38
|
<div class="style">
<div class="portfolio-project-blocks-wrapper">
|
76f36646
Yarik
test
|
39
|
<?= ListView::widget([
|
d36bdac6
Administrator
17.02.16
|
40
|
'dataProvider' => $portfolio,
|
76f36646
Yarik
test
|
41
42
43
44
|
'itemView' => '_portfolio_list_view',
'layout' => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>",
'viewParams' => [ 'parent_view' => $this ],
]); ?>
|
fbdb1f1c
Yarik
test
|
45
46
47
|
</div>
</div>
|
d36bdac6
Administrator
17.02.16
|
48
|
|
fbdb1f1c
Yarik
test
|
49
|
</div>
|