fix templates

parent b0f0fc11
......@@ -125,8 +125,38 @@ use yii\helpers\Html;
<?php $this->beginBody() ?>
<div style="background-color:#f2f2f2;" align="center">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="" color="#efefef"/>
</v:background>
<![endif]-->
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#424242">
<tr>
<td valign="top" align="center" bgcolor="#424242">
<!--Begin Header1 -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="center" valign="top" style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:12px; mso-line-height-rule:exactly; line-height:16px; color:#ffffff; padding-top:8px; padding-bottom:8px">Если письмо отображается неккоректно, нажмите <a href="#" target="_blank" style="color:#ffffff">здесь</a></td>
</tr>
</table>
</td>
</tr>
</table>
<?= $content ?>
<!--begin spacer -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="left" valign="top" style="font-size:20px; line-height:20px"><img src="<?=Yii::$app->params['frontUrl'];?>/images/letter/spacer.gif" width="1" height="20" border="0" /></td>
</tr>
</table>
<!--end spacer -->
</div>
<?php $this->endBody() ?>
</body>
......
This diff is collapsed.
......@@ -10,25 +10,6 @@ $resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 't
?>
<div style="background-color:#f2f2f2;" align="center">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="" color="#efefef"/>
</v:background>
<![endif]-->
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#424242">
<tr>
<td valign="top" align="center" bgcolor="#424242">
<!--Begin Header1 -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="center" valign="top" style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:12px; mso-line-height-rule:exactly; line-height:16px; color:#ffffff; padding-top:8px; padding-bottom:8px">Если письмо отображается неккоректно, нажмите <a href="#" target="_blank" style="color:#ffffff">здесь</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
......@@ -275,12 +256,3 @@ $resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 't
</td>
</tr>
</table>
<!--begin spacer -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="left" valign="top" style="font-size:20px; line-height:20px"><img src="<?=Yii::$app->params['frontUrl'];?>/images/letter/spacer.gif" width="1" height="20" border="0" /></td>
</tr>
</table>
<!--end spacer -->
</div>
......@@ -8,28 +8,7 @@ use common\models\Settings;
?>
<div style="background-color:#f2f2f2;" align="center">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="" color="#efefef"/>
</v:background>
<![endif]-->
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#424242">
<tr>
<td valign="top" align="center" bgcolor="#424242">
<!--Begin Header1 -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="center" valign="top" style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:12px; mso-line-height-rule:exactly; line-height:16px; color:#ffffff; padding-top:8px; padding-bottom:8px">Если письмо отображается неккоректно, нажмите <a href="#" target="_blank" style="color:#ffffff">здесь</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="center" background="">
......@@ -272,14 +251,4 @@ use common\models\Settings;
</td>
</tr>
</table>
<!--begin spacer -->
<table width="600" border="0" cellspacing="0" cellpadding="0" class="width270">
<tr>
<td align="left" valign="top" style="font-size:20px; line-height:20px"><img src="<?=Yii::$app->params['frontUrl'];?>/images/letter/spacer.gif" width="1" height="20" border="0" /></td>
</tr>
</table>
<!--end spacer -->
</div>
</table>
\ No newline at end of file
......@@ -126,10 +126,7 @@ class Bid extends \common\components\ActiveRecordModel
$session = Session::findOne(Yii::$app->session->get('SessionId'));
}
return Yii::$app->mailer->compose(['html' => 'messageBid-html', 'text' => 'messageBid-text'], [
'model' => $this,
'session' => $session,
])
return Yii::$app->mailer->compose(['html' => 'messageBid-html', 'text' => 'messageBid-text'], ['model' => $this, 'session' => $session])
->setFrom([Settings::getValue('bids-support-email-from') => 'Заявка с сайта TaskOn'])
->setTo(Settings::getValue('bids-support-email'))
->setSubject("Заявка №".$this->id.". С сайта task-on.com поступила заявка с формы: ".static::$form_titles[$this->form])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment