123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use yii\helpers\Html;
- use yii\grid\GridView;
- /* @var $this yii\web\View */
- /* @var $searchModel backend\models\search\VoiceSearch */
- /* @var $dataProvider yii\data\ActiveDataProvider */
- $this->title = Yii::t('common', 'Voices');
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <?php $this->beginBlock('content-header') ?>
- <?= $this->title . ' ' . Html::a(Yii::t('common', 'Create Voice'), ['create'], ['class' => 'btn btn-success']) ?>
- <?php $this->endBlock() ?>
- <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
- <div class="box box-success">
- <div class="box-body">
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- 'filterModel' => $searchModel,
- 'columns' => [
- 'id',
- 'title',
- // 'created_at:datetime',
- // 'updated_at:datetime',
- [
- 'class' => 'backend\widgets\grid\SwitcherColumn',
- 'attribute' => 'is_default'
- ],
- [
- 'class' => 'backend\widgets\grid\SwitcherColumn',
- 'attribute' => 'status'
- ],
- [
- 'class' => 'backend\widgets\grid\PositionColumn',
- 'attribute' => 'sort'
- ],
- ['class' => 'yii\grid\ActionColumn'],
- ],
- ]); ?>
- </div>
- </div>
|