title = Yii::t('app', 'Журнал загрузок'); $this->params['breadcrumbs'][] = $this->title; ?>

title) ?>

render('_search', ['model' => $searchModel]); ?> $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'log_msg:ntext', ['attribute' =>'record_type', 'value' => function( $model ) { $value = 'Почта'; if ( $model->record_type == 1 ) { $value = 'Фон'; } return $value; }, 'filter' => [ 1 => 'Фон' , 2 => 'Почта' ] ], ['attribute' => 'time_start', 'filter' => DatePicker::widget([ 'model' =>$searchModel, 'language' =>'ru', 'size' =>'xs', 'separator' =>'по', 'type' => DatePicker::TYPE_RANGE, 'value2'=> date('dd-M-yyyy'), 'attribute' => 'time_start', 'attribute2' => 'date_to', ]), ], ['attribute' => 'importer_id', 'label' => 'Файл поставщика', 'value' => function( $model ) { return $model->importer; }, ], ['attribute' => 'error', 'value' => function( $model ) { $value = 'Успешно'; if ($model->error) { $value = 'C ошибкой'; } return $value; }, 'filter' => [ 'Успешно' ,'C ошибкой' ] ], ['class' => 'yii\grid\ActionColumn', 'template' => '{view}'], ], ]); ?>