frontend user card safe

This commit is contained in:
glambertessa
2020-09-09 16:37:35 +03:00
parent 0d868a622b
commit 0a80a3fe26
3 changed files with 34 additions and 39 deletions

View File

@ -8,14 +8,16 @@ use yii\widgets\DetailView;
/* @var $skills \common\models\CardSkill */
/* @var $skill \common\models\Skill */
/* @var $modelFildValue yii\data\ActiveDataProvider */
/* @var $model */
$this->title = 'Профиль';
?>
<div class="user-card-view">
<h3>Личная информация</h3>
<?php
echo Html::a('Изменить профиль', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success'])
. '&nbsp' . Html::a('Изменить пароль', ['/card/user-card/password', 'id' => $model->id], ['class' => 'btn btn-success']);
echo Html::a('Изменить профиль', ['/card/user-card/update'], ['class' => 'btn btn-success'])
. '&nbsp' . Html::a('Изменить пароль', ['/card/user-card/password'], ['class' => 'btn btn-success']) . '<br><br>';
echo DetailView::widget([
'model' => $model,
'attributes' => [