= Html::hiddenInput('classDocument', $documentClass, ['id' => 'class-document']) ?>
= Html::hiddenInput('typeAction', $action, ['id' => 'type-action']) ?>
= Html::hiddenInput('idDocument', $model->id, ['id' => 'id-document']) ?>
= $form->field($model, 'name')->label('Nom du document') ?>
= $form->field($model, 'id_user', [
'template' => '{label}
{input}
' . $userManager->getUsername($model->user),
])->hiddenInput(); ?>
= $form->field($model, 'id_user', [
'template' => '{label}
Nouvel utilisateur {input}
{hint}',
])
->dropDownList(
$userManager->populateUserDropdownList(),
[
'@change' => 'changeUser',
'v-model' => 'idUser',
'class' => 'select2 select2-document-form'
]
); ?>
= $form->field($model, 'address')->textarea(['rows' => 2, 'v-model' => 'document.address']) ?>
= $form->field($model, 'comment')->textarea(['rows' => 2])->hint('Affiché en bas du document') ?>
Bons de livraison
Aucun bon de livraison pour cet utilisateur.
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-primary']) ?>