Commit 3e86d3d14f661fb68c0c17d933d2ebf559292ee8

Authored by Yarik
1 parent c7e64161

test

common/models/User.php
... ... @@ -86,7 +86,11 @@
86 86 'max' => 255,
87 87 ],
88 88 [
89   - [ 'firstname' ],
  89 + [
  90 + 'firstname',
  91 + 'lastname',
  92 + 'email',
  93 + ],
90 94 'required',
91 95 ],
92 96 [
... ... @@ -115,6 +119,18 @@
115 119 /**
116 120 * @inheritdoc
117 121 */
  122 + public function attributeLabels()
  123 + {
  124 + return [
  125 + 'firstname' => Yii::t('app', 'Имя'),
  126 + 'lastname' => Yii::t('app', 'Фамилия'),
  127 + 'email' => Yii::t('app', 'Email'),
  128 + ];
  129 + }
  130 +
  131 + /**
  132 + * @inheritdoc
  133 + */
118 134 public static function findIdentity($id)
119 135 {
120 136 if(Yii::$app->getSession()
... ...
common/models/UserInfo.php
... ... @@ -67,6 +67,12 @@
67 67 return [
68 68 [
69 69 [
  70 + 'city',
  71 + ],
  72 + 'required',
  73 + ],
  74 + [
  75 + [
70 76 'is_customer',
71 77 'is_freelancer',
72 78 'salary_currency',
... ...
frontend/views/accounts/general.php
... ... @@ -119,7 +119,6 @@
119 119 $form->field($user_info, 'country')->widget(Select2::classname(), [
120 120 'options' => ['placeholder' => 'Выбор страны ...', ],
121 121 'pluginOptions' => [
122   - 'tags' => true,
123 122 'allowClear' => true,
124 123 'minimumInputLength' => 3,
125 124 'ajax' => [
... ...