['enctype' => 'multipart/form-data']]); ?> field($model, 'active')->radioList([1 => 'Oui',0 => 'Non' ]) ?> field($model, 'name')->textInput(['maxlength' => 255]) ?> field($model, 'description')->textInput(['maxlength' => 255]) ?> field($model, 'recipe')->textarea() ?> field($model, 'price')->textInput() ?> field($model, 'weight')->textInput() ?> field($model, 'quantity_max') ->hint('Renseignez ce champs si vous souhaitez limiter la quantité commandable pour ce produit.') ->textInput() ?> field($model, 'photo')->fileInput() ?> photo)) { echo '
' ; echo '

' ; } ?>

Jours de production

field($model, 'monday')->checkbox() ?> field($model, 'tuesday')->checkbox() ?> field($model, 'wednesday')->checkbox() ?> field($model, 'thursday')->checkbox() ?> field($model, 'friday')->checkbox() ?> field($model, 'saturday')->checkbox() ?> field($model, 'sunday')->checkbox() ?>
field($model, 'id_producer')->hiddenInput()->label('') ?>
isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>