Commit f0b73ab3105552f51d4fe7ba732a30f2fe69c204

Authored by Anastasia
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,8 +3,9 @@
3 /* @var $this yii\web\View */ 3 /* @var $this yii\web\View */
4 /* @var $form yii\bootstrap\ActiveForm */ 4 /* @var $form yii\bootstrap\ActiveForm */
5 /* @var $model \common\models\Customer */ 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 use yii\web\View; 9 use yii\web\View;
9 use yii\widgets\ActiveForm; 10 use yii\widgets\ActiveForm;
10 use common\models\Customer; 11 use common\models\Customer;
@@ -133,6 +134,11 @@ JS; @@ -133,6 +134,11 @@ JS;
133 <button type="submit">РЕЄСТРАЦІЯ</button> 134 <button type="submit">РЕЄСТРАЦІЯ</button>
134 </div> 135 </div>
135 </div> 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 <?php ActiveForm::end(); ?> 142 <?php ActiveForm::end(); ?>
137 </div> 143 </div>
138 </div> 144 </div>