title =cut_title($model->response_body); $this->params['breadcrumbs'][] = ['label' => 'User Responses', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; YiiAsset::register($this); function cut_title($str) { if(strlen($str) > 40){ return mb_substr($str, 0, 40, 'UTF-8') . '...'; } return $str; } ?>

'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', [ 'attribute' => 'Пользователь', 'value' => ArrayHelper::getValue($model,'user.username'), ], [ 'attribute' => 'Вопрос', 'value' => ArrayHelper::getValue($model,'question.question_body'), ], 'response_body', 'created_at', 'updated_at', [ 'attribute' => 'answer_flag', 'format' => 'raw', 'value' => AnswerHelper::answerFlagLable($model->answer_flag), ], 'user_questionnaires_uuid', ], ]) ?>