Blame view

frontend/views/company/team.php 2.12 KB
14a09168   Alex Savenko   init commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  <?php
      /**
       * @var User               $company
       * @var ActiveDataProvider $team
       * @var View               $this
       * @var ActiveDataProvider $comments
       */
      use common\models\User;
      use yii\data\ActiveDataProvider;
      use yii\helpers\Html;
      use yii\web\View;
      use yii\widgets\LinkPager;
      use yii\widgets\ListView;
  
      $this->params[ 'company' ] = $company;
      $this->title = 'Proektant.net';
      
  ?>
      <div class="command-blocks-wr style">
          <?= ListView::widget([
              'dataProvider' => $team,
              'itemView'     => '_company_list_view',
              'layout'       => '{items}',
          ]); ?>
  
  
      </div>
      <div class="navi-buttons-wr style command-command-style">
          <?= LinkPager::widget([
              'pagination' => $team->pagination,
          ]); ?>
      </div>
  <?php
      /*====Blocks for layout====*/
      if($comments->totalCount > 0) {
          $this->beginBlock('review');
          ?>
          <div class="section-box-19">
              <div class="box-wr">
                  <div class="box-all">
                      <div class="company-performer-comm-title style">Мнений: <?= $comments->totalCount ?></div>
                      <?= ListView::widget([
                          'dataProvider' => $comments,
                          'itemView'     => '_company_team_review',
                          'layout'       => '{items}',
                          'options'      => [
                              'class' => 'company-performer-comments-wr style',
                          ],
                          'itemOptions'  => [
                              'class' => 'company-performer-comments-bl',
                          ],
                      ]) ?>
                      <div class="company-performer-comm-see-all-butt style">
                          <?= Html::a('Читать все мнения', [
                              'company/review',
                              'company_id' => $company->id,
                          ]) ?>
                      </div>
                  </div>
              </div>
          </div>
          <?php
          $this->endBlock();
      }
      /*====End blocks for layout====*/
  ?>