Commit 2436b5d6 authored by Ruslan Karimov's avatar Ruslan Karimov

#3465. Правка верстки

parent af6e3c91
......@@ -152,8 +152,6 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrReplaceNext[] = CoBlocks::printStaticBlock('case-demo-form');
$arrWhatReplaceNext[] = '[projects]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('projects');
$arrWhatReplaceNext[] = '[project-form]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('project-form');
$arrWhatReplaceNext[] = '[case-subscribe]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('case-subscribe', ['title' => $this->title]);
$arrWhatReplaceNext[] = '[case-more]';
......
<?php
use common\modules\bids\models\Bid;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<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'
]); ?>
<?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); ?>
<?php echo $form->field($model, 'confirm',
['template' => '{input}{label}{error}{hint}']
)->checkbox([
'id' => 'bid-confirm-index',
'checked' => false,
'required' => true,
'class' => 'footer_form__check',
'data-required-message' => Yii::t('form', 'Accept the terms')
],
false
)->label(Yii::t('form', 'I agree to') . " ". Html::a(\Yii::t('form', 'the terms of using personal data'), '/uploads/personal_data_processing_art_project.pdf', ['target' => '_blank']));
?>
<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>
<div id="files-zone">
</div>
<?php echo Html::submitButton(\Yii::t('index', 'Submit'), ['class' => 'btn-default save-button']); ?>
<div class="file-processing"><?= Yii::t('form', 'Please wait, file is loading...') ?></div>
</div>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>
</div>
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