title = Yii::t('common', 'Circles'); $this->params['breadcrumbs'][] = $this->title; ?> beginBlock('content-header') ?> title . ' ' . Html::a(Yii::t('common', 'Create Circle'), ['create'], ['class' => 'btn btn-success']) ?> endBlock() ?> render('_search', ['model' => $searchModel]); ?>
$dataProvider, 'filterModel' => $searchModel, 'columns' => [ 'cat_id:circleCat', 'title', 'type:circleType', 'url', [ 'attribute' => 'avatar', 'format' => ['image', ['style' => 'height: 40px; width: 40px;border-radius: 50%;border: none;']], 'contentOptions' => ['class' => 'media-content'] ], [ 'attribute' => 'qrcode', 'format' => ['image', ['style' => 'height: 40px; width: 40px;border-radius: 50%;border: none;']], 'contentOptions' => ['class' => 'media-content'] ], [ 'class' => 'backend\widgets\grid\PositionColumn', 'attribute' => 'sort' ], [ 'class' => 'backend\widgets\grid\SwitcherColumn', 'attribute' => 'status' ], [ 'class' => 'common\helpers\DiyActionColumn', 'template' => '{update} {delete}', ] ], ]); ?>