Commit de22aed7 authored by Sergey's avatar Sergey

t_3325 - Правки(Логика chexbox'ов, мелкие правки по вёрстке, форма yandex и попап)

parent a17dba49
...@@ -101,6 +101,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -101,6 +101,7 @@ class Bid extends \common\components\ActiveRecordModel
[['email'], 'string', 'max' => 70], [['email'], 'string', 'max' => 70],
[['form'], 'string', 'max' => 50], [['form'], 'string', 'max' => 50],
[['file'], 'safe'], [['file'], 'safe'],
[['confirm'], 'required'],
]; ];
} }
......
...@@ -134,6 +134,8 @@ class CoContentLang extends \common\components\ActiveRecordModel ...@@ -134,6 +134,8 @@ class CoContentLang extends \common\components\ActiveRecordModel
} }
} }
$arrWhatReplaceNext[] = '[yandex-form]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('yandex-form');
$arrWhatReplaceNext[] = '[about-reviews]'; $arrWhatReplaceNext[] = '[about-reviews]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('about-reviews'); $arrReplaceNext[] = CoBlocks::printStaticBlock('about-reviews');
$arrWhatReplaceNext[] = '[reviews]'; $arrWhatReplaceNext[] = '[reviews]';
......
<?php
use yii\db\Migration;
/**
* Class m190625_070337_add_confirm_column_to_bids
*/
class m190625_070337_add_confirm_column_to_bids extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('bids', 'confirm', $this->boolean()->notNull()->defaultValue(false)->after('text'));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('bids', 'confirm');
}
}
...@@ -51,17 +51,16 @@ use common\modules\bids\models\Bid; ...@@ -51,17 +51,16 @@ use common\modules\bids\models\Bid;
'class' => 'input_st' 'class' => 'input_st'
])->label(false); ?> ])->label(false); ?>
<div class="form-group field-bid-check"> <?php echo $form->field($model, 'confirm',
<input class="footer_form__check" type="checkbox" id="check"> ['template' => '{input}{label}{error}{hint}']
<label for="check"> )->checkbox([
Я согласен с условиями обработки 'checked' => false,
<br> 'required' => true,
<a href="javascript:;"> 'class' => 'footer_form__check',
персональных данных ],
</a> false
. )->label(Yii::t('form', 'I agree to the terms of usung') . ' <a>' . \Yii::t('form', 'personal data') . '</a>.');
</label> ?>
</div>
<?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?> <?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?>
......
...@@ -51,17 +51,16 @@ use common\modules\bids\models\Bid; ...@@ -51,17 +51,16 @@ use common\modules\bids\models\Bid;
'class' => 'input_st' 'class' => 'input_st'
])->label(false); ?> ])->label(false); ?>
<div class="form-group field-bid-check"> <?php echo $form->field($model, 'confirm',
<input class="footer_form__check" type="checkbox" id="check"> ['template' => '{input}{label}{error}{hint}']
<label for="check"> )->checkbox([
Я согласен с условиями обработки 'checked' => false,
<br> 'required' => true,
<a href="javascript:;"> 'class' => 'footer_form__check',
персональных данных ],
</a> false
. )->label(Yii::t('form', 'I agree to the terms of usung') . ' <a>' . \Yii::t('form', 'personal data') . '</a>.');
</label> ?>
</div>
<?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?> <?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?>
......
<section class="claud_sec">
<div class="claud_wrap">
<div class="container">
<div class="claud_box">
<div class="claud_txt">
<h3>
Мы являемся официальным
<br>
партнером Яндекс.Облако
</h3>
<p>Закажите перенос вашего сайта или сервиса</p>
</div>
<div class="claud_img">
<img src="./img_form/claud_img.png" alt="">
</div>
<div class="claud_btn">
<a href="#zvonok_form_yandex" class="btn_claud popup-form">Заказать</a>
</div>
</div>
</div>
</div>
</section>
<?php echo $this->render('callback_yandex_form'); ?>
\ No newline at end of file
This diff is collapsed.
...@@ -105,7 +105,6 @@ ol { ...@@ -105,7 +105,6 @@ ol {
} }
body { body {
background: #344555;
font-size: 17px; font-size: 17px;
color: #f9f9fa; color: #f9f9fa;
font-family: "RobotoRegular"; font-family: "RobotoRegular";
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
.footer_form__check{ .footer_form__check{
position: absolute; position: absolute;
opacity: 0; opacity: 0;
visibility: hidden;
} }
.footer_form__check + label{ .footer_form__check + label{
font-size: 14px; font-size: 14px;
......
...@@ -117,8 +117,8 @@ ...@@ -117,8 +117,8 @@
url: null, url: null,
method: "post", method: "post",
withCredentials: false, withCredentials: false,
parallelUploads: 2, parallelUploads: 3,
uploadMultiple: false, uploadMultiple: true,
maxFilesize: 256, maxFilesize: 256,
paramName: "file", paramName: "file",
createImageThumbnails: true, createImageThumbnails: true,
......
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