123456789101112131415161718192021222324252627282930313233 |
- <?php
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- /* @var $this yii\web\View */
- /* @var $model app\models\TestUsers */
- /* @var $form ActiveForm */
- /* @var $model app\models\UpdateForm */
- ?>
- <div class="site-account">
- <h1><?= Yii::t('app', 'My profile')?></h1>
- <h3> <?= Yii::$app->user->identity->forename.' '.Yii::$app->user->identity->surname ?></h3>
- <h3>Username: <?= Yii::$app->user->identity->username ?></h3>
- <?php if(Yii::$app->session->hasFlash('success')){
- echo '<div class="alert alert-success" role="alert">'.Yii::$app->session->getFlash('success').'</div>';
- }
- ?>
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'email')->textInput(['value'=>Yii::$app->user->identity->email])->label(Yii::t('app', 'Email'))?>
- <?= $form->field($model, 'phone')->textInput(['value'=>Yii::$app->user->identity->phone])->label(Yii::t('app', 'Phone'))?>
- <?= $form->field($model, 'lang')->dropdownList($languages)->label(Yii::t('app', 'Language')) ?>
- <div class="form-group">
- <?= Html::submitButton(Yii::t('app', 'Submit'), ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div><!-- site-account -->
|