{extends file=$smarty.current_dir|cat:'/../extends.tpl'} {use class="yii\helpers\Url"} {use class="yii\grid\GridView"} {use class="yii\widgets\Pjax" type="block"} {use class="app\assets\DepartmentAsset"} {DepartmentAsset::register($this)|void} {block name='content'}
{Pjax id="department-list"} {GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout'=> \app\helpers\CommonGrid::getLayout(), 'tableOptions' => [ 'class' => 'table table-striped table-bordered table-hover', 'style' => 'background:#fff;min-width:700px;' ], 'rowOptions' => \app\helpers\CommonGrid::rows("department"), '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("department") ], 'code', 'name', [ 'attribute' => 'pid', 'filter' => $departmentArray, 'value' => \app\helpers\CommonGrid::pid($departmentArray) ], [ 'attribute' => 'created_at', 'value' => \app\helpers\CommonGrid::createdAt() ], [ 'attribute' => 'modified_at', 'value' => \app\helpers\CommonGrid::modifiedAt() ] ] ])} {/Pjax}
{/block}