You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 satır
1.2KB

  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>