|
- <?php
-
-
-
- use common\components\Date;
- use common\helpers\Dropdown;
- use lo\widgets\Toggle;
- use yii\widgets\ActiveForm;
-
- ?>
-
- <div class="automatic-email-form">
- <?php $form = ActiveForm::begin(); ?>
- <div class="col-md-8">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- <i class="fa fa-th-list"></i>
- Général
- </h3>
- </div>
- <div class="panel-body">
- <?= $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()) ?>
- <?= $form->field($automaticEmail, 'delay_before_distribution')->dropDownList(Dropdown::numberChoices(1, 7, false, ' jour(s) avant')); ?>
- <?= $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',
- ],
- ]);
- ?>
- </div>
- </div>
- </div>
- <?= $this->render('@backend/views/_include/form_actions.php',[
- 'model' => $automaticEmail,
- ]); ?>
- <?php ActiveForm::end(); ?>
- </div>
|