</section> </div> <div class="row"> <section class="col-md-6"> <?php echo $form->textFieldGroup($ContentManager, 'user_phone'); ?> </section> </div> <?php } ?> <div class="row address"> <section class="col-md-6 custom_type"> <?php echo $form->dropDownListGroup($Custom, 'type_id', ['widgetOptions' => ['data' => ['' => '---'] + Custom::getType()]]); ?> </section> <section class="col-md-3 custom_brutto"> <?php echo $form->textFieldGroup($Custom, 'weight_brutto'); ?> <div class="input-group-btn radius weight-unit"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo Custom::enumWeight(Custom::WEIGHT_KG); ?> <span class="caret"></span></button> <ul id="weight_brutto_unit_ul" class="dropdown-menu dropdown-menu-right"> <?php foreach (Custom::enumWeight() as $value => $text) { ?>
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', ['id' => 'search-custom', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'type' => 'vertical']); ?> <div class="row"> <section class="col-md-3"> <?php echo $form->dropDownListGroup($CustomSearchForm, 'country_from', ['widgetOptions' => ['data' => ['' => Yii::t('CustomsModule.default', 'Выберите страну')] + Custom::getCountry()]]); ?> </section> <section class="col-md-3"> <?php echo $form->dropDownListGroup($CustomSearchForm, 'country_to', ['widgetOptions' => ['data' => ['' => Yii::t('CustomsModule.default', 'Выберите страну')] + Custom::getCountry()]]); ?> </section> <section class="col-md-6"><?php echo $form->dropDownListGroup($CustomSearchForm, 'type', ['widgetOptions' => ['data' => ['' => Yii::t('CustomsModule.default', 'Выберите категорию')] + Custom::getType()]]); ?> </section> </div> <div class="row"> <section class="col-md-3"> <?php echo $form->datePickerGroup($CustomSearchForm, 'date_from', ['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; var day = date.getDate(); $(this).val(year + "-" + month + "-" + day); }']], 'append' => '<i class="glyphicon glyphicon-calendar"></i>']); ?> </section>