Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

43 rindas
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>