Blame view

frontend/views/payment/index.php 905 Bytes
fa67310a   Yarik   test
1
  <?php
eb7e82fb   Administrator   29.02.16
2
3
4
5
6
  

  use yii\helpers\Html;

  use yii\grid\GridView;

  

  /* @var $this yii\web\View */

fa67310a   Yarik   test
7
  /* @var $searchModel common\models\PaymentSearch */
eb7e82fb   Administrator   29.02.16
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  /* @var $dataProvider yii\data\ActiveDataProvider */

  

  $this->title = Yii::t('app', 'Payments');

  $this->params['breadcrumbs'][] = $this->title;

  ?>

  <div class="payment-index">

  

      <h1><?= Html::encode($this->title) ?></h1>

      <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

  

      <p>

          <?= Html::a(Yii::t('app', 'Create Payment'), ['create'], ['class' => 'btn btn-success']) ?>

      </p>

      <?= GridView::widget([

          'dataProvider' => $dataProvider,

fa67310a   Yarik   test
23
24
          'filterModel' => $searchModel,
          'columns' => [
eb7e82fb   Administrator   29.02.16
25
26
              ['class' => 'yii\grid\SerialColumn'],

  

fa67310a   Yarik   test
27
28
29
              'payment_id',
              'name',
              'status',
eb7e82fb   Administrator   29.02.16
30
31
32
33
34
  

              ['class' => 'yii\grid\ActionColumn'],

          ],

      ]); ?>

  </div>