test connection

This commit is contained in:
2020-10-09 17:40:46 +07:00
parent 70db83d3ab
commit fc71a6c7b8
2 changed files with 59 additions and 8 deletions

View File

@@ -37,12 +37,12 @@
{GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'layout'=> \app\helpers\DepartmentGrid::getLayout(),
'layout'=> \app\helpers\CommonGrid::getLayout(),
'tableOptions' => [
'class' => 'table table-striped table-bordered table-hover',
'style' => 'background:#fff;min-width:700px;'
],
'rowOptions' => \app\helpers\DepartmentGrid::rows("device"),
'rowOptions' => \app\helpers\CommonGrid::rows("device"),
'columns' => [
[
'class' => 'yii\grid\SerialColumn',
@@ -54,17 +54,21 @@
'format' => 'raw',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
'value' => \app\helpers\DepartmentGrid::checkbox("device")
'value' => \app\helpers\CommonGrid::checkbox("device")
],
'name',
'serial',
'ip_address',
'status',
'type',
'area_id',
[
'attribute' => 'created_at',
'value' => \app\helpers\DepartmentGrid::createdAt()
'value' => \app\helpers\CommonGrid::createdAt()
],
[
'attribute' => 'modified_at',
'value' => \app\helpers\DepartmentGrid::modifiedAt()
'value' => \app\helpers\CommonGrid::modifiedAt()
]
]
])}