frontend user-card view

This commit is contained in:
akosse 2020-01-24 17:38:25 +03:00
parent c85a047f77
commit c5227f1ee4
3 changed files with 5 additions and 26 deletions

View File

@ -112,6 +112,11 @@ class AccessesController extends Controller
return $this->redirect(['index']); return $this->redirect(['index']);
} }
public function actionCustomDelete($id)
{
}
/** /**
* Finds the Accesses model based on its primary key value. * Finds the Accesses model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown. * If the model is not found, a 404 HTTP exception will be thrown.

View File

@ -33,9 +33,6 @@ use yii\helpers\ArrayHelper;
[ [
'data' => ArrayHelper::map(Skill::find()->all(), 'id', 'name'), 'data' => ArrayHelper::map(Skill::find()->all(), 'id', 'name'),
'options' => ['placeholder' => '...', 'class' => 'form-control', 'multiple' => true], 'options' => ['placeholder' => '...', 'class' => 'form-control', 'multiple' => true],
'pluginOptions' => [
'allowClear' => true
],
] ]
)->label('Навыки'); ?> )->label('Навыки'); ?>
</div> </div>

View File

@ -21,34 +21,11 @@ $this->title = 'Профиль';
'attributes' => [ 'attributes' => [
['label' => 'ФИО', 'attribute' => 'fio',], ['label' => 'ФИО', 'attribute' => 'fio',],
['label' => 'Email', 'attribute' => 'email',], ['label' => 'Email', 'attribute' => 'email',],
[
'attribute' => 'gender',
'value' => $model->gendersText,
],
['label' => 'Дата рождения', 'attribute' => 'dob',], ['label' => 'Дата рождения', 'attribute' => 'dob',],
[
'attribute' => 'status',
'value' => $model->status0->name,
],
[ [
'attribute' => 'position_id', 'attribute' => 'position_id',
'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности', 'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности',
], ],
[
'attribute' => 'Фото',
'format' => 'raw',
'value' => function ($model) {
return Html::tag('img', null, ['src' => $model->photo, 'width' => '100px']);
}
],
[
'attribute' => 'Резюме',
'format' => 'raw',
'value' => function ($model) {
return Html::a('Скачать', $model->resume, ['target' => '_blank']);
}
],
['label' => 'Добвлен', 'attribute' => 'created_at',],
], ],
]); ]);
?> ?>