12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- use yii\helpers\Html;
- use yii\grid\GridView;
- /* @var $this yii\web\View */
- /* @var $searchModel backend\models\search\ClockSearch */
- /* @var $dataProvider yii\data\ActiveDataProvider */
- $this->title = Yii::t('common', 'Clocks');
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <?php $this->beginBlock('content-header') ?>
- <?= $this->title ?>
- <?php $this->endBlock() ?>
- <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
- <div class="box box-success">
- <div class="box-body">
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- // 'filterModel' => $searchModel,
- 'columns' => [
- 'id',
- 'user_id:user',
- 'cat_id:circleCat',
- 'content',
- 'poiname',
- // 'poiaddress',
- //'lng',
- // 'lat',
- // 'province',
- // 'city',
- // 'remark',
- 'created_at:datetime',
- // 'updated_at',
- // 'status',
- [
- 'class' => 'backend\widgets\grid\SwitcherColumn',
- 'attribute' => 'status'
- ],
- [
- 'class' => 'common\helpers\DiyActionColumn',
- 'template' => '{update} {delete}',
- ]
- ],
- ]); ?>
- </div>
- </div>
|