|
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use common\models\Developpement ;
-
-
-
-
- ?>
-
- <div class="development-form">
-
- <?php $form = ActiveForm::begin(); ?>
-
- <?= $form->field($model, 'type')->dropDownList([
- Development::TYPE_EVOLUTION => 'Évolution',
- Development::TYPE_BUG => 'Anomalie',
- ]) ?>
-
- <?= $form->field($model, 'status')->dropDownList([
- Development::STATUS_OPEN => 'Ouvert',
- Development::STATUS_CLOSED => 'Fermé',
- ]) ?>
-
- <?= $form->field($model, 'subject')->textInput(['maxlength' => true]) ?>
- <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'time_estimate')->textInput() ?>
- <?= $form->field($model, 'progress')->textInput() ?>
- <?= $form->field($model, 'date_delivery')->textInput() ?>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
-
- <?php ActiveForm::end(); ?>
-
- </div>
|