Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_form.php 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. use common\models\Developpement ;
  5. /* @var $this yii\web\View */
  6. /* @var $model common\models\Developpement */
  7. /* @var $form yii\widgets\ActiveForm */
  8. ?>
  9. <div class="developpement-form">
  10. <?php $form = ActiveForm::begin(); ?>
  11. <?= $form->field($model, 'type')->dropDownList([
  12. Developpement::TYPE_EVOLUTION => 'Évolution',
  13. Developpement::TYPE_BUG => 'Anomalie',
  14. ]) ?>
  15. <?= $form->field($model, 'statut')->dropDownList([
  16. Developpement::STATUT_OPEN => 'Ouvert',
  17. Developpement::STATUT_CLOSED => 'Fermé',
  18. ]) ?>
  19. <?= $form->field($model, 'objet')->textInput(['maxlength' => true]) ?>
  20. <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
  21. <?= $form->field($model, 'estimation_temps')->textInput() ?>
  22. <?= $form->field($model, 'avancement')->textInput() ?>
  23. <?= $form->field($model, 'date_livraison')->textInput() ?>
  24. <div class="form-group">
  25. <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  26. </div>
  27. <?php ActiveForm::end(); ?>
  28. </div>