= $form->field($model, 'name')->label('Nom du document') ?>
all(); ?>
= $form->field($model, 'id_user', [
'template' => '{label}
Nouvel utilisateur {input}
{hint}',
])
->dropDownList(
ArrayHelper::map($usersArray, 'user_id', function ($model) {
return $model['lastname'] . ' ' . $model['name'];
}),
[
'@change' => 'changeUser',
'prompt' => '--',
'v-model' => 'idUser',
]
); ?>
= $form->field($model, 'address')->textarea(['rows' => 2, 'v-model' => 'document.address']) ?>
= $form->field($model, 'comment')->textarea(['rows' => 2])->hint('Affiché en bas de la facture') ?>
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-primary']) ?>