Blame view

backend/views/customer/view.php 1.31 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php
21aedefe   Yarik   Another one admin...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
      
      use yii\helpers\Html;
      use yii\widgets\DetailView;
      
      /**
       * @var yii\web\View           $this
       * @var common\models\Customer $model
       */
      $this->title = $model->name;
      $this->params[ 'breadcrumbs' ][] = [
          'label' => 'Customers',
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
d8c1a2e0   Yarik   Big commit artbox
16
17
  ?>
  <div class="customer-view">
21aedefe   Yarik   Another one admin...
18
      
d8c1a2e0   Yarik   Big commit artbox
19
      <h1><?= Html::encode($this->title) ?></h1>
21aedefe   Yarik   Another one admin...
20
      
d8c1a2e0   Yarik   Big commit artbox
21
      <p>
21aedefe   Yarik   Another one admin...
22
23
24
25
26
27
28
29
          <?= Html::a('Update', [
              'update',
              'id' => $model->id,
          ], [ 'class' => 'btn btn-primary' ]) ?>
          <?= Html::a('Delete', [
              'delete',
              'id' => $model->id,
          ], [
d8c1a2e0   Yarik   Big commit artbox
30
              'class' => 'btn btn-danger',
21aedefe   Yarik   Another one admin...
31
              'data'  => [
d8c1a2e0   Yarik   Big commit artbox
32
                  'confirm' => 'Are you sure you want to delete this item?',
21aedefe   Yarik   Another one admin...
33
                  'method'  => 'post',
d8c1a2e0   Yarik   Big commit artbox
34
35
36
              ],
          ]) ?>
      </p>
21aedefe   Yarik   Another one admin...
37
      
d8c1a2e0   Yarik   Big commit artbox
38
      <?= DetailView::widget([
21aedefe   Yarik   Another one admin...
39
          'model'      => $model,
d8c1a2e0   Yarik   Big commit artbox
40
41
42
          'attributes' => [
              'id',
              'username',
d8c1a2e0   Yarik   Big commit artbox
43
44
45
              'name',
              'surname',
              'phone',
36d1807a   Yarik   Big commit.
46
              'gender',
d8c1a2e0   Yarik   Big commit artbox
47
48
49
50
51
              'birth_day',
              'birth_month',
              'birth_year',
              'body:ntext',
              'group_id',
21aedefe   Yarik   Another one admin...
52
53
              'email',
              'created_at:date',
d8c1a2e0   Yarik   Big commit artbox
54
55
56
57
          ],
      ]) ?>
  
  </div>