title = $model->fio; $this->params['breadcrumbs'][] = ['label' => 'Профили', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Список', ['index'], ['class' => 'btn btn-primary']) ?> = Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
= DetailView::widget([ 'model' => $model, 'attributes' => [ 'fio', 'passport', [ 'attribute' => 'photo', 'format' => 'raw', 'value' => function ($model) { return Html::tag('img', null, ['src' => $model->photo, 'width' => '100px']); } ], [ 'attribute' => 'level', 'value' => function($model){ return \common\models\UserCard::getLevelLabel($model->level); } ], [ 'attribute' => 'specification', 'value' => $model->specification ], [ 'attribute' => 'resume', 'format' => 'raw', 'value' => function ($model) { return Html::a('Скачать', $model->resume, ['target' => '_blank']); } ], [ 'attribute' => 'city', 'value' => $model->city ], [ 'attribute' => 'gender', 'value' => $model->gendersText, ], 'email:email', 'link_vk:url', 'link_telegram:url', 'dob', [ 'attribute' => 'status', 'value' => $model->status0->name, ], [ 'attribute' => 'salary', 'visible' => Yii::$app->user->can('confidential_information') ], [ 'attribute' => 'position_id', 'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности', ], 'created_at', 'updated_at', 'vc_text_short', [ 'attribute' => 'vc_text', 'format' => 'raw' ] ], ]) ?>