Commit bfed083d authored by Sergey's avatar Sergey

t_3325 Правки вёрстки(ч2)

parent 5be249a3
......@@ -33,6 +33,7 @@ class Bid extends \common\components\ActiveRecordModel
const FORM_MESSAGE = 'message';
const FORM_BUSINESS = 'business';
const FORM_DOCUMENTATION = 'documentation';
const FORM_YANDEX_CLOUD = 'yandex_cloud';
const TAG_INVOLVEMENT = 'Вовлечение';
const TAG_TREATMENT = 'Обращение';
......@@ -43,7 +44,8 @@ class Bid extends \common\components\ActiveRecordModel
// self::FORM_SUBSCRIBE => 'Подписка',
self::FORM_MESSAGE => 'Сообщение с сайта',
self::FORM_BUSINESS => 'Расчет для бизнес решения',
self::FORM_DOCUMENTATION => 'Заявка на Taskon'
self::FORM_DOCUMENTATION => 'Заявка на Taskon',
self::FORM_YANDEX_CLOUD => 'Запрос на подключение к Яндекс.Облако'
];
public static $tag_titles = [
......
......@@ -9,5 +9,5 @@ return [
'Close' => 'Закрыть',
'Your request has been send. We will call you' => 'Ваша заявка отправлена, мы вам перезвоним',
'Posting a project on Yandex.Cloud' => 'Размещение проекта на Яндекс.Облако',
'Please fill your number so we can ask clarifying questions' => 'Оставьте свой номер телефо, чтобы мы задать уточняющие вопросы',
'Please fill your number so we can ask clarifying questions' => 'Оставьте свой номер телефона, чтобы мы смогли задать уточняющие вопросы',
];
\ No newline at end of file
......@@ -18,8 +18,8 @@ return [
'Subscribe' => 'Подписаться',
'Write here summary of your article or send a short offer.' => 'Напишите краткие тезисы статьи или опишите интересующий вопрос.',
'You have successfully subscribed to the update notification.' => 'Вы успешно подписались на уведомление об обновлениях.',
'I agree to the terms of usung' => 'Я согласен с условиями использования',
'personal data' => 'личных данных',
'I agree to' => 'Я согласен с',
'the terms of usung personal data' => 'условиями обработки персональных данных',
'Please enter your name.' => 'Пожалуйста, укажите своё имя:',
'Thank you very much for showing interest!' => 'Нам очень приятно, что вы проявили интерес!'
];
\ No newline at end of file
......@@ -17,6 +17,7 @@ use common\modules\bids\models\Bid;
$model->form = Bid::FORM_CALLBACK;
$form = ActiveForm::begin([
'id' => 'callback_form',
'action' => '/bids/bid/add',
'enableClientValidation' => false,
'options' => [
......@@ -54,12 +55,13 @@ use common\modules\bids\models\Bid;
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'id' => 'bid-confirm',
'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>.');
)->label(Yii::t('form', 'I agree to') . ' <a>' . \Yii::t('form', 'the terms of usung personal data') . '</a>.');
?>
<?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?>
......
......@@ -14,9 +14,10 @@ use common\modules\bids\models\Bid;
<?php
$model = new Bid;
$model->scenario = Bid::SCENARIO_CALLBACK;
$model->form = Bid::FORM_CALLBACK;
$model->form = Bid::FORM_YANDEX_CLOUD;
$form = ActiveForm::begin([
'id' => 'yandex_callback_form',
'action' => '/bids/bid/add',
'enableClientValidation' => false,
'options' => [
......@@ -54,12 +55,13 @@ use common\modules\bids\models\Bid;
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'id' => 'bid-confirm-yandex',
'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>.');
)->label(Yii::t('form', 'I agree to') . ' <a>' . \Yii::t('form', 'the terms of usung personal data') . '</a>.');
?>
<?php echo Html::submitButton(Yii::t('footer', 'Submit'), ['class' => 'save-button popup_bt_send']); ?>
......
......@@ -10,7 +10,7 @@ use frontend\assets\FileUploadBundle;
FileUploadBundle::register($this);
?>
<footer class="footer">
<footer class="footer footer_index">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
......@@ -78,12 +78,13 @@ FileUploadBundle::register($this);
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'id' => 'bid-confirm-index',
'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>.');
)->label(Yii::t('form', 'I agree to') . ' <a>' . \Yii::t('form', 'the terms of usung personal data') . '</a>.');
?>
<div class="file-upload_block dropzone" id="block_upload">
......@@ -199,5 +200,4 @@ FileUploadBundle::register($this);
<div class="up-button"></div>
</div>
<?php echo $this->render('block/callback'); ?>
<?php echo $this->render('block/callback_yandex_form'); ?>
\ No newline at end of file
<?php echo $this->render('block/callback'); ?>
\ No newline at end of file
......@@ -913,7 +913,19 @@ a.toggle_bottom:hover .icon-arrowDown2:after, a.toggle_bottom:active .icon-arrow
.article_short_tags {
margin-bottom: 14px;
}
.bids-form .message-box, .blog-bid-form .message-box {
.bids-form .message-box{
position: absolute;
z-index: 110;
text-align: center;
width: 480px;
left: 50%;
top: 35%;
font-size: 18px;
margin: -11px 0 0 -240px;
display: none;
line-height: 30px;
}
.blog-bid-form .message-box {
position: absolute;
z-index: 110;
text-align: center;
......
......@@ -105,6 +105,7 @@ ol {
}
body {
background: #344555;
font-size: 17px;
color: #f9f9fa;
font-family: "RobotoRegular";
......
......@@ -263,11 +263,14 @@
/* Claud */
.claud_sec{
background-color: white !important;
}
.claud_wrap{
margin-top: 20px;
margin-bottom: 20px;
padding: 20px 20px 50px 20px;
}
.claud_box{
background-repeat: no-repeat;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
......@@ -322,7 +325,11 @@ body{
overflow-y: hidden;
}
.footer{
background: none;
background: white;
padding-top: 0;
}
.footer_index{
background: #344555;
}
.footer_top{
background-image: url(../img_form/footer_bg.png);
......
......@@ -90,6 +90,7 @@ $(document).ready(function () {
if(!$('.case-subscribe-email').hasClass('case-subscribe-hide')) {
$('.case-subscribe-email').addClass('case-subscribe-hide');
$('.case-subscribe-name').removeClass('case-subscribe-hide');
$('.case-subscribe-button').css('margin-top', '20px');
} else {
$('.case-subscribe-name').addClass('case-subscribe-hide');
$('.case-subscribe-button').hide();
......
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