Esempio n. 1
0
            <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>

            <?php 
if ($img = $model->avatar) {
    echo '<div style="display: inline;"><img src="/uploads/fotos/' . $img . '" style="width:80px;"></div>';
}
?>
            <?php 
echo $form->field($model, 'image')->fileInput();
?>