Commit f0b73ab3105552f51d4fe7ba732a30f2fe69c204
1 parent
981d7e5d
add lang_id and status
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
frontend/views/site/signup.php
| ... | ... | @@ -3,8 +3,9 @@ |
| 3 | 3 | /* @var $this yii\web\View */ |
| 4 | 4 | /* @var $form yii\bootstrap\ActiveForm */ |
| 5 | 5 | /* @var $model \common\models\Customer */ |
| 6 | - | |
| 7 | -use yii\helpers\Html; | |
| 6 | + | |
| 7 | + use artbox\core\models\Language; | |
| 8 | + use yii\helpers\Html; | |
| 8 | 9 | use yii\web\View; |
| 9 | 10 | use yii\widgets\ActiveForm; |
| 10 | 11 | use common\models\Customer; |
| ... | ... | @@ -133,6 +134,11 @@ JS; |
| 133 | 134 | <button type="submit">РЕЄСТРАЦІЯ</button> |
| 134 | 135 | </div> |
| 135 | 136 | </div> |
| 137 | + <?php | |
| 138 | + echo $form->field($model, 'language_id') ->hiddenInput(['value' => Language::getCurrent()->id])->label(false); | |
| 139 | + echo $form->field($model, 'status') ->hiddenInput(['value' => Customer::STATUS_NEW])->label(false); | |
| 140 | + | |
| 141 | + ?> | |
| 136 | 142 | <?php ActiveForm::end(); ?> |
| 137 | 143 | </div> |
| 138 | 144 | </div> | ... | ... |