= Html::hiddenInput('classDocument',$model->getClass(), ['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}
'.$model->user->getUsername(),
])->hiddenInput(); ?>
all();
?>
= $form->field($model, 'id_user', [
'template' => '{label}
Nouvel utilisateur {input}
{hint}',
])
->dropDownList(
ArrayHelper::map($usersArray, 'user_id', function ($model) {
if(isset($model['name_legal_person']) && strlen($model['name_legal_person'])) {
return $model['name_legal_person'] ;
}
else {
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') ?>
getClass() == 'Invoice'): ?>
Bons de livraison
Aucun bon de livraison pour cet utilisateur.
= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-primary']) ?>