cities for profiles
This commit is contained in:
@ -67,6 +67,12 @@ use yii\widgets\ActiveForm;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<?= $form->field($model, 'city')->textInput(['maxlength' => true]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
|
||||
|
@ -36,6 +36,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
},
|
||||
],
|
||||
'fio',
|
||||
// 'city',
|
||||
//'passport',
|
||||
'salary',
|
||||
'email:email',
|
||||
|
@ -6,9 +6,9 @@ use yii\helpers\Html;
|
||||
/* @var $model backend\modules\card\models\UserCard */
|
||||
|
||||
$this->title = $model->fio;
|
||||
$this->params['breadcrumbs'][] = ['label' => 'User Cards', 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => 'Профили', 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
|
||||
$this->params['breadcrumbs'][] = 'Update';
|
||||
$this->params['breadcrumbs'][] = 'Редактировать';
|
||||
?>
|
||||
<div class="user-card-update">
|
||||
|
||||
|
@ -12,12 +12,13 @@ use yii\widgets\DetailView;
|
||||
/* @var $modelFildValue yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = $model->fio;
|
||||
$this->params['breadcrumbs'][] = ['label' => 'User Cards', 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => 'Профили', 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="user-card-view">
|
||||
|
||||
<p>
|
||||
<?= Html::a('Список', ['index'], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||||
</p>
|
||||
|
||||
@ -27,19 +28,23 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'fio',
|
||||
'passport',
|
||||
[
|
||||
'attribute' => 'Photo',
|
||||
'attribute' => 'photo',
|
||||
'format' => 'raw',
|
||||
'value' => function ($model) {
|
||||
return Html::tag('img', null, ['src' => $model->photo, 'width' => '100px']);
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute' => 'Resume',
|
||||
'attribute' => 'resume',
|
||||
'format' => 'raw',
|
||||
'value' => function ($model) {
|
||||
return Html::a('Скачать', $model->resume, ['target' => '_blank']);
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute' => 'city',
|
||||
'value' => $model->city
|
||||
],
|
||||
[
|
||||
'attribute' => 'gender',
|
||||
'value' => $model->gendersText,
|
||||
|
Reference in New Issue
Block a user