fitness-web/backend/views/customer/mail.php
2016-05-20 08:16:30 +02:00

64 lines
1.6 KiB
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\Customer;
use common\components\CityNameTypeahead;
use common\components\CityZipTypeahead;
use common\components\CardNumberTypeahead;
use kartik\widgets\DatePicker;
use dosamigos\tinymce\TinyMce;
use yii\grid\GridView;
use yii\base\Widget;
/* @var $this yii\web\View */
/* @var $model common\models\Customer */
/* @var $form yii\widgets\ActiveForm */
?>
<h1>Hírlevél küldése</h1>
<p>
Hírlevél küldése minden vendégnek, aki
</p>
<ul>
<li>
Nincs törölve
</li>
<li>
be van állítva a kér hírlevelet jelölőnégyzet a vendég adatlapján
</li>
</ul>
<div class="customer-form">
<?php $form = ActiveForm::begin(); ?>
<?php echo $form->field($model,'subject')?>
<?= $form->field($model, 'text')->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"
]
]);?>
<?php // echo $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton( Yii::t('common/customer', 'Küldés') , ['class' => 'btn btn-success' ]) ?>
</div>
<?php ActiveForm::end(); ?>
</div>