= $form->field($model, 'lastname')->textInput() ?>
= $form->field($model, 'name')->textInput() ?>
= $form->field($model, 'phone')->textInput() ?>
= $form->field($model, 'email')->textInput() ?>
= $form->field($model, 'address')->textarea() ?>
= $form->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
]);
?>
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
Mot de passe
= Html::submitButton('Envoyer un nouveau mot de passe', ['class' => 'btn btn-primary', 'name' => 'submit_new_password', 'value' => 1]) ?>