['enctype' => 'multipart/form-data']]); ?> field($model, 'actif')->radioList([1 => 'Oui',0 => 'Non' ]) ?> field($model, 'order')->textInput(['maxlength' => 255]) ?> field($model, 'nom')->textInput(['maxlength' => 255]) ?> field($model, 'diminutif')->textInput(['maxlength' => 255]) ?> field($model, 'description')->textInput(['maxlength' => 255]) ?> field($model, 'recette')->textarea() ?> field($model, 'saison')->dropDownList(['all' => 'Toutes les saisons', 'printemps' => 'Printemps', 'ete' => 'Été', 'automne' => 'Automne', 'hiver' => 'Hiver']) ; ?> field($model, 'prix')->textInput() ?> field($model, 'poids')->textInput() ?> field($model, 'quantite_max')->textInput() ?> field($model, 'illustration')->fileInput() ?> illustration)) { echo '
' ; echo '

' ; } ?> field($model, 'photo')->fileInput() ?> photo)) { echo '
' ; echo '

' ; } ?>

Production

field($model, 'lundi')->checkbox() ?> field($model, 'mardi')->checkbox() ?> field($model, 'mercredi')->checkbox() ?> field($model, 'jeudi')->checkbox() ?> field($model, 'vendredi')->checkbox() ?> field($model, 'samedi')->checkbox() ?> field($model, 'dimanche')->checkbox() ?>
isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>