add resume tariff column to user_card table
This commit is contained in:
@ -85,6 +85,7 @@ class UserCardSearch extends UserCard
|
||||
'updated_at' => $this->updated_at,
|
||||
'test_task_getting_date' => $this->test_task_getting_date,
|
||||
'test_task_complete_date' => $this->test_task_complete_date,
|
||||
'resume_tariff' => $this->resume_tariff,
|
||||
]);
|
||||
|
||||
$query->andFilterWhere(['like', 'fio', $this->fio])
|
||||
|
@ -120,6 +120,7 @@ use yii\widgets\ActiveForm;
|
||||
<?php if (Yii::$app->user->can('confidential_information')): ?>
|
||||
<div class="col-xs-6">
|
||||
<?= $form->field($model, 'salary')->textInput(['maxlength' => true]) ?>
|
||||
<?= $form->field($model, 'resume_tariff')->textInput(['maxlength' => true]) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-xs-6">
|
||||
|
@ -80,6 +80,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'salary',
|
||||
'visible' => Yii::$app->user->can('confidential_information')
|
||||
],
|
||||
[
|
||||
'attribute' => 'resume_tariff',
|
||||
'visible' => Yii::$app->user->can('confidential_information')
|
||||
],
|
||||
[
|
||||
'attribute' => 'position_id',
|
||||
'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности',
|
||||
|
Reference in New Issue
Block a user