vc_text admin

This commit is contained in:
andrey
2021-06-25 13:24:32 +03:00
parent 998e4c4336
commit 1a4f0b6d5e
7 changed files with 237 additions and 5 deletions

View File

@ -26,6 +26,7 @@ use yii\helpers\ArrayHelper;
* @property string $deleted_at
* @property string $resume
* @property string $salary
* @property string $vc_text
* @property int $position_id
* @property int $city
*
@ -67,7 +68,7 @@ class UserCard extends \yii\db\ActiveRecord
return [
[['fio', 'status', 'gender', 'email'], 'required'],
[['gender', 'status', 'position_id', 'id_user'], 'integer'],
[['dob', 'created_at', 'updated_at', 'deleted_at'], 'safe'],
[['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text'], 'safe'],
[['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram'], 'string', 'max' => 255],
[['salary'], 'string', 'max' => 100],
[['position_id'], 'exist', 'skipOnError' => true, 'targetClass' => Position::class, 'targetAttribute' => ['position_id' => 'id']],
@ -99,6 +100,7 @@ class UserCard extends \yii\db\ActiveRecord
'city' => 'Город',
'link_vk' => 'VK',
'link_telegram' => 'Telegram',
'vc_text' => 'Резюме текст'
];
}