Blame view

backend/modules/map/views/area/trash.php 706 Bytes
d1f8bd40   Alexey Boroda   first 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
  <?php
  
  use thread\widgets\grid\ActionDeleteColumn;
  use thread\widgets\grid\ActionRestoreColumn;
  use backend\widgets\GridView\GridView;
  
  
  /**
   *
   * @package admin\modules\page\view
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c) 2015, Thread
   */
  
  echo GridView::widget([
      'dataProvider' => $model->trash(Yii::$app->request->queryParams),
      'tableOptions' => ['class' => 'table table-striped table-bordered'],
      'columns' => [
          'lang.title',
          'position',
          [
              'class' =>  ActionDeleteColumn::class,
              'link' => ['id']
          ],
          [
              'class' =>  ActionRestoreColumn::class,
              'link' => ['id']
          ],
      ]
  ]);