예제 #1
0
echo Yii::t('maddoger/user', 'Bio');
?>
</div>
                </div>
                <div class="panel-body">
                    <?php 
echo $form->field($profileModel, 'last_name')->textInput(['maxlength' => 255]);
?>
                    <?php 
echo $form->field($profileModel, 'first_name')->textInput(['maxlength' => 255]);
?>
                    <?php 
echo $form->field($profileModel, 'patronymic')->textInput(['maxlength' => 255]);
?>
                    <?php 
echo $form->field($profileModel, 'gender')->dropDownList(UserProfile::getGenders(), ['prompt' => '']);
?>
                    <?php 
echo $form->field($profileModel, 'avatar', ['template' => '{label} <br />' . ($profileModel->avatar ? Html::img($profileModel->avatar, ['width' => 150]) : '') . '{input} {hint} {error}'])->fileInput();
?>
                    <?php 
echo $form->field($profileModel, 'delete_avatar')->checkbox();
?>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title"><?php 
echo Yii::t('maddoger/user', 'Settings');
?>
</div>