|
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
-
- $this->setTitle('Mon profil') ;
- $this->setIcon('user');
-
- ?>
-
- <div id="profil-user" class="user-update">
-
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="user-form">
- <?php $form = ActiveForm::begin([
- 'enableClientScript' => false
- ]); ?>
-
- <h2 class="first-title">Informations</h2>
- <?= $form->field($model, 'lastname')->textInput() ?>
- <?= $form->field($model, 'name')->textInput() ?>
- <?= $form->field($model, 'phone')->textInput() ?>
- <?= $form->field($model, 'email')->textInput(); ?>
- <?= $form->field($model, 'address')->textarea() ?>
- <div class="block-newsletter">
- <?= $form->field($model, 'newsletter_souke')
- ->hint(Yii::$app->parameterBag->get('newsletterSoukeDescription'))
- ->checkbox() ?>
- </div>
-
- <h2>Mot de passe</h2>
- <p>Renseignez les champs ci-dessous si vous souhaitez modifier votre mot de passe.</p>
- <?= $form->field($model, 'password_old')->passwordInput() ?>
- <?= $form->field($model, 'password_new')->passwordInput() ?>
- <?= $form->field($model, 'password_new_confirm')->passwordInput() ?>
-
- <div class="clr"></div>
- <div class="form-group form-buttons">
- <?= Html::submitButton('<i class="bi bi-pencil"></i> Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'name' => 'user-profile-button']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
- </div>
|