Blame view

backend/views/admin-menu/view.php 1.32 KB
b0f143c3   Yarik   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
31
32
33
34
35
36
37
38
39
40
41
42
43
  <?php
  
  use yii\helpers\Html;
  use yii\widgets\DetailView;
  
  /* @var $this yii\web\View */
  /* @var $model backend\models\AdminMenu */
  
  $this->title = Yii::t('app', 'Admin Menus').': '.$model->name;
  $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Admin Menus'), 'url' => ['index']];
  $this->params['breadcrumbs'][] = $this->title;
  ?>
  
  <div class="admin-menu-view box box-primary">
  <?= DetailView::widget([
          'model' => $model,
          'attributes' => [
              'admin_menu_id',
              'admin_menu_pid',
              'status',
              'hide_min',
              'sort',
              'name',
              'path',
              'param',
          ],
      ]) ?>
  
      <div class="box-footer with-border">
          <p>
              <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->admin_menu_id], ['class' => 'btn btn-primary btn-flat']) ?>
              <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->admin_menu_id], [
                  'class' => 'btn btn-danger btn-flat',
                  'data' => [
                      'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                      'method' => 'post',
                  ],
              ]) ?>
              <?= Html::a(Yii::t('app', 'Back'), ['index'], ['class' => 'btn btn-default btn-flat']) ?>
          </p>
      </div>
      
  </div>