title = cut_title($model->description); $this->params['breadcrumbs'][] = ['label' => 'Test Tasks', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); function cut_title($str) { if(strlen($str) > 35){ return mb_substr($str, 0, 35, 'UTF-8') . '...'; } return $str; } ?>

$model->id], ['class' => 'btn btn-primary']) ?> $model->id], ['class' => 'btn btn-primary']) ?> $model->id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => 'Are you sure you want to delete this item?', 'method' => 'post', ], ]) ?>

$model, 'attributes' => [ 'id', 'description', [ 'attribute' => 'link', 'value' => function ($model) { return Html::a(Html::encode($model->link), Url::to($model->link)); }, 'format' => 'raw', ], [ 'attribute' => 'level', 'format' => 'raw', 'filter' => TestTask::getLevelList(), 'value' => function($model){ return TestTask::getLevelLabel($model->level); } ], [ 'attribute' => 'status', 'format' => 'raw', 'filter' => StatusHelper::statusList(), 'value' => function($model){ return StatusHelper::statusLabel($model->status); } ], ], ]) ?>