Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- 'filterModel' => $searchModel,
- 'options'=>[
- 'class'=>'table table-striped table-bordered bootstrap-datatable datatable',
- ],
- 'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
- 'id',
- 'username',
- //'auth_key',
- //'password_hash',
- //'password_reset_token',
- // 'email:email',
- // 'role',
- // 'status',
- // 'createdtime:datetime',
- // 'updatedtime:datetime',
- ['class' => 'yii\grid\ActionColumn',
- 'template' => '{view}{update}{delete}',
- 'buttons' => [
- 'view' => function ($url, $model) {
- return Html::a('<i class="halflings-icon white zoom-in"></i>', $url, [
- 'title' => Yii::t('app', 'Show'),
- 'class' => 'btn btn-success',
- ]);
- },
- 'update' => function ($url, $model) {
- return Html::a('<i class="halflings-icon white edit"></i>', $url, [
- 'title' => Yii::t('app', 'Edit'),
- 'class' => 'btn btn-info',
- ]);
- },
- 'delete' => function ($url, $model) {
- return Html::a('<i class="halflings-icon white trash"></i>', $url, [
- 'title' => Yii::t('app', 'Delete'),
- 'class' => 'btn btn-danger',
- ]);
- }
- ]
- ],
- ],
- ]); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement