Перенос шаблонов писем для смены E-mail в папку компонента email'ов

This commit is contained in:
ErickSkrauch
2017-04-24 19:31:38 +03:00
parent 1d5e0ce2c6
commit 0b61c2d819
7 changed files with 4 additions and 4 deletions

View File

@@ -21,8 +21,8 @@ class ChangeEmailConfirmCurrentEmail extends Template {
*/
protected function getView() {
return [
'html' => '@api/mails/current-email-confirmation-html',
'text' => '@api/mails/current-email-confirmation-text',
'html' => '@common/emails/views/current-email-confirmation-html',
'text' => '@common/emails/views/current-email-confirmation-text',
];
}

View File

@@ -24,8 +24,8 @@ class ChangeEmailConfirmNewEmail extends Template {
*/
protected function getView() {
return [
'html' => '@api/mails/new-email-confirmation-html',
'text' => '@api/mails/new-email-confirmation-text',
'html' => '@common/emails/views/new-email-confirmation-html',
'text' => '@common/emails/views/new-email-confirmation-text',
];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* @var string $key
*/
?>
<p>
You want to change you account E-mail. Right? So you must pass the code below into field on site.
</p>
<p>Code: <?= $key ?></p>
<br />
<p><i>// P.S. yes, this is E-mail is not designed yet :)</i></p>

View File

@@ -0,0 +1,11 @@
<?php
/**
* @var string $key
*/
?>
You want to change you account E-mail. Right? So you must pass the code below into field on site.
Code: <?= $key ?>
// P.S. yes, this is E-mail is not designed yet :)

View File

@@ -0,0 +1,29 @@
<?php
/**
* @var \yii\base\View $this
* @var \api\models\FeedbackForm $model
* @var \common\models\Account|null $account
*/
use yii\helpers\Html;
?>
<h2>Форма обратной связи Account Ely.by</h2>
<hr />
<br />
<br />
Письмо отправлено: <?= date('d.m.Y, в H:i') ?><br />
E-mail отправителя: <?= $model->email ?><br />
<?php if ($account) { ?>
Ник отправителя: <?= $account->username ?><br />
<?php if ($account->email !== $model->email) { ?>
Регистрационный E-mail: <?= $account->email ?><br />
<?php } ?>
<?php $link = 'http://ely.by/u' . $account->id; ?>
Ссылка на профиль: <?= Html::a($link, $link) ?><br />
Дата регистрации: <?= date('d.m.Y, в H:i', $account->created_at) ?><br />
<?php } ?>
Тема: <?= Yii::$app->formatter->asText($model->subject) ?><br />
Текст:<br />
<?= Yii::$app->formatter->asNtext($model->message) ?>

View File

@@ -0,0 +1,16 @@
<?php
/**
* @var string $username
* @var string $key
*/
?>
<p>
This E-mail was specified as new for account <?= $username ?>. To confirm this E-mail, pass code
below into form on site.
</p>
<p>Code: <?= $key ?></p>
<br />
<p><i>// P.S. yes, this is E-mail is not designed yet :)</i></p>

View File

@@ -0,0 +1,12 @@
<?php
/**
* @var string $username
* @var string $key
*/
?>
This E-mail was specified as new for account <?= $username ?>. To confirm this E-mail, pass code below into form on site.
Code: <?= $key ?>
// P.S. yes, this is E-mail is not designed yet :)