<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places,drawing"></script> <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', ['id' => 'search-insurance', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'type' => 'vertical']); ?> <div class="row"> <section class="col-md-12"> <?php echo $form->textFieldGroup($Autosearch, 'name'); ?> </section> </div> <div class="row"> <section class="col-md-7"> <?php echo $form->dropDownListGroup($InsuranceSearchForm, 'category_id', ['widgetOptions' => ['data' => Insurance::getTypeInsurance()]]); ?> </section> <section class="col-md-5 geo-search"> <?php $this->widget('application.components.mapwindow.MapWindowWidget', array('model' => $InsuranceSearchForm, 'form' => $form, 'name' => 'name', 'addressLat' => 'address_lat', 'addressLong' => 'address_long', 'addressInd' => 'ind', 'shapes' => 'shapes', 'radius' => 'radius', 'id' => 'from', 'mode' => 'marker')); ?> </section> </div> <div class="row"> <section class="col-md-4"> <?php echo $form->datePickerGroup($InsuranceSearchForm, 'date_to', ['widgetOptions' => ['options' => ['format' => 'yyyy-mm-dd', 'autoclose' => 'true'], 'events' => ['show' => 'js:function(e){ var date = new Date(); var year = date.getFullYear(); var month = date.getMonth() + 1;