Skip to content

Commit

Permalink
Remove unnecessary USE and extend DomainGridView not for BoxedGridView
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Aug 7, 2015
1 parent d2931dd commit 33c3308
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/grid/DomainGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
use hipanel\grid\MainColumn;
use hipanel\modules\domain\widgets\State;
use hipanel\modules\domain\widgets\Expires;
use hipanel\grid\BoxedGridView;
use hipanel\grid\RefColumn;
use hipanel\widgets\ArraySpoiler;
use hiqdev\bootstrap_switch\BootstrapSwitchColumn;
use hiqdev\higrid\GridView;
use Yii;
use yii\helpers\Html;
use yii\helpers\Url;

class DomainGridView extends BoxedGridView
class DomainGridView extends GridView
{
static public function defaultColumns()
{
Expand Down Expand Up @@ -96,13 +95,8 @@ static public function defaultColumns()
],
'actions' => [
'class' => ActionColumn::className(),
'template' => '{view} {block} {delete} {update}', // {state}
'template' => '{view} {delete}', // {state}
'header' => Yii::t('app', 'Actions'),
'buttons' => [
'block' => function ($url, $model, $key) {
return Html::a('Close', ['block', 'id' => $model->id]);
},
],
],
];
}
Expand Down

0 comments on commit 33c3308

Please sign in to comment.