Commit 7f29b80e authored by Shakarim Sapa's avatar Shakarim Sapa

- Add new validation rule

parent 34693541
...@@ -46,7 +46,6 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists( ...@@ -46,7 +46,6 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists(
])->textInput([ ])->textInput([
'placeholder' => 'E-mail*' 'placeholder' => 'E-mail*'
]); ?> ]); ?>
<?php var_dump($errors); ?>
<?php echo Html::submitButton(\Yii::t('form', 'Subscribe'), ['class' => 'save-button']); ?> <?php echo Html::submitButton(\Yii::t('form', 'Subscribe'), ['class' => 'save-button']); ?>
...@@ -126,6 +125,8 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists( ...@@ -126,6 +125,8 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists(
errors = errors.concat(value); errors = errors.concat(value);
}); });
console.log(errors);
dataLayer.push({ dataLayer.push({
'event': 'UA_event', 'event': 'UA_event',
'Catagory': 'Ошибки', 'Catagory': 'Ошибки',
......
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