Blame view

views/feedback/index.php 982 Bytes
ea1a19bc   Yarik   Testing
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
  <?php
      use artweb\artbox\models\FeedbackSearch;
      use yii\bootstrap\Html;
      use yii\data\ActiveDataProvider;
      use yii\grid\GridView;
      use yii\web\View;
      
      /**
       * @var ActiveDataProvider $dataProvider
       * @var FeedbackSearch     $searchModel
       * @var View               $this
       */
      $this->title = 'Feedback';
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="feedback-index">
      
      <h1><?= Html::encode($this->title) ?></h1>
      <?= GridView::widget(
          [
              'dataProvider' => $dataProvider,
              'filterModel'  => $searchModel,
              'columns'      => [
                  [ 'class' => 'yii\grid\SerialColumn' ],
                  'id',
                  'name',
                  'phone',
                  'created_at:date',
                  [
                      'class'    => 'yii\grid\ActionColumn',
                      'template' => '{delete}',
                  ],
              ],
          ]
      ); ?>
  </div>