Личная информация
'btn btn-success'])
. ' ' . Html::a('Изменить пароль', ['/card/user-card/password'], ['class' => 'btn btn-success']) . '
';
echo DetailView::widget([
'model' => $model,
'attributes' => [
['label' => 'ФИО', 'attribute' => 'fio',],
['label' => 'Email', 'attribute' => 'email',],
['label' => 'Дата рождения', 'attribute' => 'dob',],
[
'attribute' => 'position_id',
'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности',
],
],
]);
?>
Навыки
= $skill['skill']->name; ?>
Достижения
= Html::tag('img', null,
['src' => $achievement['achievement']->img, 'height' => '50px','width' => '50px']
) ?>
= $achievement['achievement']->title; ?>
Дополнительные сведения
= GridView::widget([
'dataProvider' => $modelFildValue,
'layout' => "{items}",
'columns' => [
'field.name:text:Поле',
[
'attribute' => 'value',
'format' => 'raw',
'value' => function ($model) {
if ($model->type_file == 'file') {
return $model->value . ' (' . Html::a('Скачать', $model->value, ['target' => '_blank', 'download' => 'download']) . ')';
}
return $model->value;
}
],
],
]); ?>