Blame view

backend/themes/defaults/layouts/crud.php 1023 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
31
32
33
  <?php
  
  /**
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  use yii\helpers\Html;
  
  $module = (Yii::$app->controller->module->module->id == "app-backend") ?
      Yii::$app->controller->module->id : Yii::$app->controller->module->module->id;
  
  $this->beginContent('@app/layouts/main.php'); ?>
  
  <div class="row border-bottom white-bg page-heading">
      <div class="col-md-10">
          <h2>
              <?= Yii::t($module, $this->context->module->title) ?>.
              <?= Yii::t($module, $this->context->title) ?>.
          </h2>
      </div>
      <div class="col-md-2">
          <h2 class="btn-group" role="group">
              <?= Html::a('<i class="fa fa-plus"></i> ' . Yii::t('app', 'Create'), ['create'], ['class' => 'btn btn-primary']) ?>
              <?= Html::a('<i class="fa fa-trash"></i> ', ['trash'], ['class' => 'btn btn-default', 'title' => Yii::t('app', 'Trash')]) ?>
          </h2>
      </div>
  </div>
  
  <div class="animated fadeIn">
      <?= $content ?>
  </div>
  
  <?php $this->endContent(); ?>