|
- <?php
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use common\models\Developpement ;
-
- /* @var $this yii\web\View */
- /* @var $model common\models\Developpement */
- /* @var $form yii\widgets\ActiveForm */
- ?>
-
- <div class="developpement-form">
-
- <?php $form = ActiveForm::begin(); ?>
-
- <?= $form->field($model, 'type')->dropDownList([
- Developpement::TYPE_EVOLUTION => 'Évolution',
- Developpement::TYPE_BUG => 'Anomalie',
- ]) ?>
-
- <?= $form->field($model, 'statut')->dropDownList([
- Developpement::STATUT_OPEN => 'Ouvert',
- Developpement::STATUT_CLOSED => 'Fermé',
- ]) ?>
-
- <?= $form->field($model, 'objet')->textInput(['maxlength' => true]) ?>
-
- <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
-
- <?= $form->field($model, 'estimation_temps')->textInput() ?>
-
- <?= $form->field($model, 'avancement')->textInput() ?>
-
- <?= $form->field($model, 'date_livraison')->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>
|