Blame view

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