mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Перенос шаблонов писем для смены E-mail в папку компонента email'ов
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
14
common/emails/views/current-email-confirmation-html.php
Normal file
14
common/emails/views/current-email-confirmation-html.php
Normal 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>
|
11
common/emails/views/current-email-confirmation-text.php
Normal file
11
common/emails/views/current-email-confirmation-text.php
Normal 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 :)
|
29
common/emails/views/feedback.php
Normal file
29
common/emails/views/feedback.php
Normal 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) ?>
|
16
common/emails/views/new-email-confirmation-html.php
Normal file
16
common/emails/views/new-email-confirmation-html.php
Normal 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>
|
12
common/emails/views/new-email-confirmation-text.php
Normal file
12
common/emails/views/new-email-confirmation-text.php
Normal 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 :)
|
Reference in New Issue
Block a user