<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\tinymce\TinyMce;
/* @var $this yii\web\View */
/* @var $model common\models\Newsletter */
/* @var $form yii\widgets\ActiveForm */
?>
<p>
Az új hirlevelek következő nap hajnal 3-kor kerülnek kiküldésre
</p>
<div class="newsletter-form">

    <?php $form = ActiveForm::begin(); ?>

  <?php echo $form->field($model,'subject')?>

	<?= $form->field($model, 'body')->widget(TinyMce::className(), [
	    'options' => ['rows' => 12],
	 //   'language' => 'en',
	    'clientOptions' => [
	        'plugins' => [
	            "advlist autolink lists link charmap print preview anchor",
	            "searchreplace visualblocks code fullscreen",
	            "insertdatetime media table contextmenu paste"
	        ],
	        'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
	    ]
	]);?>


    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('common/newsletter', 'Mentés') : Yii::t('common/newsletter', 'Módosítás'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
