Commit 5be249a3 authored by Sergey's avatar Sergey

Merge branch 't_3325'

# Conflicts:
#	frontend/views/layouts/block/callback.php
#	frontend/views/layouts/block/callback_yandex_form.php
#	frontend/views/layouts/footer-index.php
parents 34b8190c de22aed7
......@@ -101,6 +101,7 @@ class Bid extends \common\components\ActiveRecordModel
[['email'], 'string', 'max' => 70],
[['form'], 'string', 'max' => 50],
[['file'], 'safe'],
[['confirm'], 'required'],
];
}
......
......@@ -134,6 +134,8 @@ class CoContentLang extends \common\components\ActiveRecordModel
}
}
$arrWhatReplaceNext[] = '[yandex-form]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('yandex-form');
$arrWhatReplaceNext[] = '[about-reviews]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('about-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;
'class' => 'input_st'
])->label(false); ?>
<div class="form-group field-bid-check">
<input class="footer_form__check" type="checkbox" id="check">
<label for="check">
Я согласен с условиями обработки
<br>
<a href="javascript:;">
персональных данных
</a>
.
</label>
</div>
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'checked' => false,
'required' => true,
'class' => 'footer_form__check',
],
false
)->label(Yii::t('form', 'I agree to the terms of usung') . ' <a>' . \Yii::t('form', 'personal data') . '</a>.');
?>
<?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?>
......
......@@ -51,17 +51,16 @@ use common\modules\bids\models\Bid;
'class' => 'input_st'
])->label(false); ?>
<div class="form-group field-bid-check">
<input class="footer_form__check" type="checkbox" id="check">
<label for="check">
Я согласен с условиями обработки
<br>
<a href="javascript:;">
персональных данных
</a>
.
</label>
</div>
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'checked' => false,
'required' => true,
'class' => 'footer_form__check',
],
false
)->label(Yii::t('form', 'I agree to the terms of usung') . ' <a>' . \Yii::t('form', 'personal data') . '</a>.');
?>
<?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
......@@ -11,125 +11,106 @@ FileUploadBundle::register($this);
?>
<footer class="footer">
<div class="footer_top">
<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>
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="calk_form calk_form_custom">
<span class="calk_form__title"><?=\Yii::t('index', 'Have a project or idea - send us');?></span>
<span class="calk_form_subtitle"><?=\Yii::t('index', 'We are ready to talk about any idea or can prepare an offer for your project');?></span>
<?php
$model = new Bid;
$model->scenario = Bid::SCENARIO_PROJECT;
$model->form = Bid::FORM_PROJECT;
$form = ActiveForm::begin([
'id' => 'form_foot',
'action' => '/bids/bid/add',
'enableClientValidation' => false,
'options' => [
'class' => 'footer_form bids-form',
'data-title' => 'Рассчитать проект',
'data-form' => 'Рассчитать проект',
'enctype' => 'multipart/form-data',
'data-tag' => Bid::TAG_TREATMENT,
'method' => 'post',
'name' => 'form_foot'
],
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="calk_form calk_form_custom">
<span class="calk_form__title"><?=\Yii::t('index', 'Have a project or idea - send us');?></span>
<span class="calk_form_subtitle"><?=\Yii::t('index', 'We are ready to talk about any idea or can prepare an offer for your project');?></span>
<?php
$model = new Bid;
$model->scenario = Bid::SCENARIO_PROJECT;
$model->form = Bid::FORM_PROJECT;
$form = ActiveForm::begin([
'id' => 'form_foot',
'action' => '/bids/bid/add',
'enableClientValidation' => false,
'options' => [
'class' => 'footer_form bids-form',
'data-title' => 'Рассчитать проект',
'data-form' => 'Рассчитать проект',
'enctype' => 'multipart/form-data',
'data-tag' => Bid::TAG_TREATMENT,
'method' => 'post',
'name' => 'form_foot'
],
]); ?>
<div class="message-box send_secce">Ваша заявка на проект успешно отправлена!</div>
<div class="content">
<?php echo Html::hiddenInput('scenario', $model->scenario, ['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'form', ['template' => '{input}'])->hiddenInput(['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'name', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Your name'),
'class' => 'footer_form__input'
]); ?>
<div class="message-box send_secce">Ваша заявка на проект успешно отправлена!</div>
<div class="content">
<?php echo Html::hiddenInput('scenario', $model->scenario, ['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'form', ['template' => '{input}'])->hiddenInput(['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'name', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Your name'),
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'phone', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Telephone'),
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'email', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => 'E-mail*',
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'text')->textArea([
'placeholder' => \Yii::t('form', 'Short text about your project or idea'),
'class' => 'footer_form__textarea'
])->label(false); ?>
<div class="form-group field-bid-check">
<input class="footer_form__check" type="checkbox" id="check">
<label for="check">
<?=\Yii::t('form', 'I agree to the terms of usung')?>
<a href="javascript:;">
<?=\Yii::t('form', 'personal data')?>
</a>
.
</label>
</div>
<?php echo $form->field($model, 'phone', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Telephone'),
'class' => 'footer_form__input'
]); ?>
<div class="file-upload_block dropzone" id="block_upload">
<div class="file_upload_bt">
<div class="file-upload">
<label>
<span><?=\Yii::t('form', 'Choose file')?></span>
</label>
</div>
<div class="file_drop"><?=\Yii::t('form', 'Drag any files here or choose in folder')?></div>
<?php echo $form->field($model, 'email', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => 'E-mail*',
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'text')->textArea([
'placeholder' => \Yii::t('form', 'Short text about your project or idea'),
'class' => 'footer_form__textarea'
])->label(false); ?>
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'checked' => false,
'required' => true,
'class' => 'footer_form__check',
],
false
)->label(Yii::t('form', 'I agree to the terms of usung') . ' <a>' . \Yii::t('form', 'personal data') . '</a>.');
?>
<div class="file-upload_block dropzone" id="block_upload">
<div class="file_upload_bt">
<div class="file-upload">
<label>
<span><?=\Yii::t('form', 'Choose file')?></span>
</label>
</div>
<div class="file_drop"><?=\Yii::t('form', 'Drag any files here or choose in folder')?></div>
</div>
<div id="files-zone">
</div>
<?php echo Html::submitButton(\Yii::t('index', 'Submit'), ['class' => 'btn-default save-button']); ?>
</div>
<div id="files-zone">
</div>
<?php ActiveForm::end(); ?>
<?php echo Html::submitButton(\Yii::t('index', 'Submit'), ['class' => 'btn-default save-button']); ?>
</div>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>
</div>
<div class="footer_top">
<div class="container">
<div class="footer_top_wrap">
<div class="footer_top_column footer_top_column1">
<h4>Рекомендуем посмотреть</h4>
......
......@@ -105,7 +105,6 @@ ol {
}
body {
background: #344555;
font-size: 17px;
color: #f9f9fa;
font-family: "RobotoRegular";
......
......@@ -44,7 +44,6 @@
.footer_form__check{
position: absolute;
opacity: 0;
visibility: hidden;
}
.footer_form__check + label{
font-size: 14px;
......
......@@ -117,8 +117,8 @@
url: null,
method: "post",
withCredentials: false,
parallelUploads: 2,
uploadMultiple: false,
parallelUploads: 3,
uploadMultiple: true,
maxFilesize: 256,
paramName: "file",
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