|
123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- /* @var $this yii\web\View */
- /* @var $model common\models\User */
-
- $this->title = 'Mon profil' ;
-
- ?>
- <div id="profil-user" class="user-update">
-
- <h1 class="title-systeme-commande"><span class="glyphicon glyphicon-user"></span> Mon profil</h1>
-
- <div class="user-form">
-
- <?php $form = ActiveForm::begin([
- 'enableClientScript' => false
- ]); ?>
-
- <h2>Informations</h2>
- <?= $form->field($model, 'nom')->textInput() ?>
- <?= $form->field($model, 'prenom')->textInput() ?>
- <?= $form->field($model, 'telephone')->textInput() ?>
- <?= $form->field($model, 'email')->textInput(['readonly' => true]); ?>
- <?= $form->field($model, 'adresse')->textarea() ?>
-
- <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">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
-
-
- </div>
|