Blame view

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