refactor GridView helpers
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
'class' => 'table table-striped table-bordered table-hover',
|
||||
'style' => 'background:#fff;min-width:700px;'
|
||||
],
|
||||
'rowOptions' => \app\helpers\DepartmentGrid::rows(),
|
||||
'rowOptions' => \app\helpers\DepartmentGrid::rows("department"),
|
||||
'columns' => [
|
||||
[
|
||||
'class' => 'yii\grid\SerialColumn',
|
||||
@@ -54,7 +54,7 @@
|
||||
'format' => 'raw',
|
||||
'contentOptions' => ['class' => 'text-center'],
|
||||
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
|
||||
'value' => \app\helpers\DepartmentGrid::checkbox()
|
||||
'value' => \app\helpers\DepartmentGrid::checkbox("department")
|
||||
],
|
||||
'code',
|
||||
'name',
|
||||
|
||||
Reference in New Issue
Block a user