Commit 64aa9c88 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 63126898
......@@ -3,7 +3,6 @@ use yii\widgets\ActiveForm;
use yii\helpers\Html;
use \common\modules\blog\models\BlogBids;
use common\modules\bids\models\Bid;
$userIsSubscribed = false;
$cacheEmail = Yii::$app->cache->get('user_email');
if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->exists()===true)
......@@ -16,9 +15,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
<div class="subsc_blog_txt"><?=\Yii::t('form', 'We will try to publish this section only useful and unique content for the market. Subscription allow to be the first to get notification about fresh articles.')?></div>
<?php
$model = new Bid;
$model->setScenario(Bid::SCENARIO_SUBSCRIBE);
$model->form = Bid::FORM_SUBSCRIBE;
$model = new BlogBids;
$form = ActiveForm::begin([
'action' => '/blog/blog-bid/add',
......@@ -26,8 +23,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
'options' => [
'class' => 'subsc_blog_form bids-form',
'data-title' => $title,
'data-form' => 'Подпись на обновления в блоге',
'data-tag' => Bid::TAG_INVOLVEMENT
'data-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