<?php

use common\modules\city\widgets\CityWidget;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\modules\user\models\Profile */
/* @var $form ActiveForm */
$this->title = Yii::t('common', 'Profile');
?>
<div class="container profile">
    <div class="row">
        <div class="col-md-3">
            <?= $this->render('../_menu')?>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <?= Html::encode($this->title) ?>
                </div>
                <div class="panel-body">
                    <?php $form = ActiveForm::begin(); ?>

                    <?= $form->field($model, 'gender')->radioList($model->genderList) ?>
                    <?= $form->field($model, 'locale')->dropDownList($model->localeList) ?>

                    <?= $form->field($model, 'signature')->textarea() ?>

                    <div class="form-group">
                        <?= Html::submitButton('修改', ['class' => 'btn btn-primary']) ?>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>
        </div>
    </div>
</div><!-- profile -->
