Commit 3e86d3d14f661fb68c0c17d933d2ebf559292ee8
1 parent
c7e64161
test
Showing
3 changed files
with
23 additions
and
2 deletions
Show diff stats
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
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' => [ | ... | ... |