Général
= $form->field($automaticEmail, 'status')->widget(Toggle::class,
[
'options' => [
'data-id' => $automaticEmail->id,
'data-on' => 'Activé',
'data-off' => 'Désactivé'
],
]);
?>
= $form->field($automaticEmail, 'day')->dropDownList(Date::getDaysOfWeekArray(true)) ?>
= $form->field($automaticEmail, 'id_point_sale')->dropDownList($pointSaleModule->getRepository()->populatePointSaleDropdownList()) ?>
= $form->field($automaticEmail, 'delay_before_distribution')->dropDownList(Dropdown::numberChoices(1, 7, true, ' jour(s) avant')); ?>
= $form->field($automaticEmail, 'sending_day')->dropDownList(Date::getDaysOfWeekArray(true)) ?>
= $form->field($automaticEmail, 'sending_hour')->dropDownList(Dropdown::numberChoices(0, 23, true, 'h')) ?>
= $form->field($automaticEmail, 'subject')->textInput() ?>
= $form->field($automaticEmail, 'message')->widget(letyii\tinymce\Tinymce::class, [
'configs' => [
'plugins' => Yii::$app->parameterBag->get('tinyMcePlugins'),
]
]); ?>
= $form->field($automaticEmail, 'integrate_product_list')->widget(Toggle::class,
[
'options' => [
'data-id' => $automaticEmail->id,
'data-on' => 'Oui',
'data-off' => 'Non',
'data-offstyle' => 'default',
],
]);
?>