|
|
@@ -13,12 +13,9 @@ use yii\widgets\ActiveForm; |
|
|
|
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> |
|
|
|
|
|
|
|
<?= $form->field($model, 'actif')->radioList([1 => 'Oui',0 => 'Non' ]) ?> |
|
|
|
<?= $form->field($model, 'order')->textInput(['maxlength' => 255]) ?> |
|
|
|
<?= $form->field($model, 'nom')->textInput(['maxlength' => 255]) ?> |
|
|
|
<?= $form->field($model, 'diminutif')->textInput(['maxlength' => 255]) ?> |
|
|
|
<?= $form->field($model, 'description')->textInput(['maxlength' => 255]) ?> |
|
|
|
<?= $form->field($model, 'recette')->textarea() ?> |
|
|
|
<?= $form->field($model, 'saison')->dropDownList(['all' => 'Toutes les saisons', 'printemps' => 'Printemps', 'ete' => 'Été', 'automne' => 'Automne', 'hiver' => 'Hiver']) ; ?> |
|
|
|
<?= $form->field($model, 'prix')->textInput() ?> |
|
|
|
<?= $form->field($model, 'poids')->textInput() ?> |
|
|
|
<?= $form->field($model, 'quantite_max')->textInput() ?> |
|
|
@@ -31,19 +28,22 @@ use yii\widgets\ActiveForm; |
|
|
|
} |
|
|
|
?> |
|
|
|
|
|
|
|
<h2>Production</h2> |
|
|
|
<?= $form->field($model, 'lundi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'mardi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'mercredi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'jeudi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'vendredi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'samedi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'dimanche')->checkbox() ?> |
|
|
|
|
|
|
|
<h2>Jours de production</h2> |
|
|
|
<div id="jours-production"> |
|
|
|
<?= $form->field($model, 'lundi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'mardi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'mercredi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'jeudi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'vendredi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'samedi')->checkbox() ?> |
|
|
|
<?= $form->field($model, 'dimanche')->checkbox() ?> |
|
|
|
</div> |
|
|
|
<div class="clr"></div> |
|
|
|
|
|
|
|
<?= $form->field($model, 'id_etablissement')->hiddenInput()->label('') ?> |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
|
|
|
<?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
|
|
|
</div> |
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?> |