{use class="yii\grid\GridView"} {use class="yii\widgets\Pjax" type="block"} {Pjax id="staff-list" enablePushState=false timeout=false enableReplaceState=false} {GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => null, 'layout'=> \app\helpers\StaffGrid::getLayout(), 'tableOptions' => [ 'class' => 'table table-striped table-bordered table-hover', 'style' => 'background:#fff;min-width:700px;' ], 'columns' => [ [ 'class' => 'yii\grid\SerialColumn', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'] ], [ 'header' => "", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'], 'value' => \app\helpers\CommonGrid::checkbox("staff-schedule", false) ], 'code', 'name', 'card_number', [ 'attribute' => 'department_id', 'value' => \app\helpers\StaffGrid::department($departmentArray) ], [ 'attribute' => 'schedule', 'contentOptions' => \app\helpers\StaffGrid::scheduleHeader(), 'value' => \app\helpers\StaffGrid::schedule($scheduleArray) ], [ 'attribute' => 'doors', 'format' => 'raw', 'headerOptions' => ['style' => 'width:15%'], 'contentOptions' => \app\helpers\StaffGrid::doorsHeader(), 'value' => \app\helpers\StaffGrid::doors($doorsArray) ] ] ])} {/Pjax}