<li><a data-toggle="tab" href="#avata">头像</a></li> <li><a data-toggle="tab" href="#notifications">其他</a></li> </ul> <div class="tab-content"> <div id="profile" class="profile-edit tab-pane fade in active"> <h2 class="heading-md">设置您账号的一些基本信息.</h2> <?php $form = ActiveForm::begin(['id' => 'profile-form', 'action' => ['/user/settings/profile'], 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-9\">{input}</div>\n<div class=\"col-sm-offset-3 col-lg-9\">{error}\n{hint}</div>", 'labelOptions' => ['class' => 'col-lg-3 control-label']], 'enableAjaxValidation' => true, 'enableClientValidation' => false, 'validateOnBlur' => false]); ?> <?php echo $form->field($model, 'nickname'); ?> <?php echo $form->field($model, 'gender')->radioList(Profile::getGenderList()); ?> <?php echo $form->field($model, 'public_email'); ?> <?php echo $form->field($model, 'location'); ?> <?php echo $form->field($model, 'qq'); ?> <?php
?> <?php echo $form->field($model, 'first_name'); ?> <?php echo $form->field($model, 'last_name'); ?> <?php echo $form->field($model, 'birthdate'); ?> <?php echo $form->field($model, 'gender_id')->dropDownList(Profile::getGenderList(), ['prompt' => 'Please Choose One']); ?> <div class="form-group"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton('Reset', ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?>