Esempio n. 1
0
            <?php 
echo $form->field($model, 'surname');
?>

            <?php 
echo $form->field($model, 'sex')->radioList(['f' => 'Женский', 'm' => 'Мужской']);
?>

            <label class="control-label">Дата рождения</label>
            <div style="margin-bottom: 15px;">
            <?php 
echo Html::activeDropDownList($model, 'birthYear', GlobalHelper::getYearsList(), ['class' => 'form-select', 'style' => 'width:90px;']);
?>
            <?php 
echo Html::activeDropDownList($model, 'birthMonth', GlobalHelper::getMonthsList(), ['class' => 'form-select', 'style' => 'width:130px;']);
?>
            <?php 
echo Html::activeDropDownList($model, 'birthDay', GlobalHelper::getDaysList(), ['class' => 'form-select', 'style' => 'width:80px;']);
?>
            </div>

            <label class="control-label">Место жительства (Страна/Город)</label>
            <div style="margin-bottom: 15px;">
            <?php 
echo Html::activeDropDownList($model, 'country', GlobalHelper::getCountriesList(), ['class' => 'form-select', 'style' => 'width:150px;']);
?>
            <?php 
echo Html::activeTextInput($model, 'city', ['class' => 'form-select', 'style' => 'width:200px;']);
?>
            </div>