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']) ?>