示例#1
0
            <?php 
echo $form->field($model, 'regionId')->dropDownList($regionList, ['prompt' => ' --- ']);
?>
            <?php 
echo $form->field($model, 'cityId')->dropDownList($cityList, ['prompt' => ' --- ']);
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'imya');
?>
            <?php 
echo $form->field($model, 'familiya');
?>
            <?php 
echo $form->field($model, 'pol')->radioList(Profile::polList());
?>
        </div>
        <div class="col-md-4">
            <?php 
echo Html::submitButton('Поиск', ['btn btn-success']);
?>
        </div>
    </div>
    <?php 
ActiveForm::end();
?>
</div>

<div class="row">
示例#2
0
?>
</div>
                    <div class="col-md-4"><?php 
echo $form->field($model, 'imya');
?>
</div>
                    <div class="col-md-4"><?php 
echo $form->field($model, 'otchestvo');
?>
</div>
                </div>

                <div class="row">
                    <div class="col-md-6">
                        <?php 
echo $form->field($model, 'pol')->radioList(\app\modules\reviews\models\Profile::polList());
?>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <?php 
echo '<label class="control-label">Дата рождения</label>';
echo DatePicker::widget(['model' => $model, 'attribute' => 'dataRojdeniya', 'type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'startView' => 'decade']]);
?>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-6">
                        <?php