Browse Source

Modification d'un document : gestion du champs 'comment' #166

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
efb48c920a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      backend/views/document/_form.php

+ 4
- 1
backend/views/document/_form.php View File

@@ -72,7 +72,10 @@ use common\models\Producer;
'v-model' => 'idUser',
]
); ?>
<?= $form->field($model, 'address')->textarea(['rows' => 3, 'v-model' => 'document.address']) ?>
<?= $form->field($model, 'address')->textarea(['rows' => 2, 'v-model' => 'document.address']) ?>
<?php if ($action == 'update'): ?>
<?= $form->field($model, 'comment')->textarea(['rows' => 2])->hint('Affiché en bas de la facture') ?>
<?php endif; ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-primary']) ?>
</div>

Loading…
Cancel
Save