false ]); ?> field($model, 'type') ->dropDownList([ User::TYPE_INDIVIDUAL => 'Particulier', User::TYPE_LEGAL_PERSON => 'Personne morale' ], [ 'v-model' => 'type' ]) ; ?> field($model, 'name_legal_person', ['options' => ['v-show' => "type == 'legal-person'"]])->textInput() ?> field($model, 'lastname')->textInput() ?> field($model, 'name')->textInput() ?> field($model, 'phone')->textInput() ?> field($model, 'email')->textInput() ?> field($model, 'address')->textarea() ?> field($model, 'points_sale')->checkboxlist( ArrayHelper::map($pointsSaleArray, 'id', function ($pointSale) use ($model) { $commentUserPointSale = isset($pointSale->userPointSale[0]) ? $pointSale->userPointSale[0]->comment : ''; $html = Html::encode($pointSale->name); if ($pointSale->restricted_access) { $html .= ''; } return $html; }), [ 'encode' => false ]); ?>
isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>

Mot de passe

'btn btn-primary', 'name' => 'submit_new_password', 'value' => 1]) ?>