Général

field($automaticEmail, 'status')->widget(Toggle::class, [ 'options' => [ 'data-id' => $automaticEmail->id, 'data-on' => 'Activé', 'data-off' => 'Désactivé' ], ]); ?> field($automaticEmail, 'day')->dropDownList(Date::getDaysOfWeekArray()) ?> field($automaticEmail, 'delay_before_distribution')->dropDownList(Dropdown::numberChoices(1, 7, false, ' jour(s) avant')); ?> field($automaticEmail, 'subject')->textInput() ?> field($automaticEmail, 'message')->widget(letyii\tinymce\Tinymce::class, [ 'configs' => [ 'plugins' => Yii::$app->parameterBag->get('tinyMcePlugins'), ] ]); ?> field($automaticEmail, 'integrate_product_list')->widget(Toggle::class, [ 'options' => [ 'data-id' => $automaticEmail->id, 'data-on' => 'Oui', 'data-off' => 'Non', 'data-offstyle' => 'default', ], ]); ?>
render('@backend/views/_include/form_actions.php',[ 'model' => $automaticEmail, ]); ?>