= $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' => 3, 'v-model' => 'document.address']) ?>
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-primary']) ?>