You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.php 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\User */
  6. $this->title = 'Mon profil' ;
  7. ?>
  8. <div id="profil-user" class="user-update">
  9. <h1 class="title-systeme-commande"><span class="glyphicon glyphicon-user"></span> Mon profil</h1>
  10. <div class="user-form">
  11. <?php $form = ActiveForm::begin([
  12. 'enableClientScript' => false
  13. ]); ?>
  14. <h2>Informations</h2>
  15. <?= $form->field($model, 'nom')->textInput() ?>
  16. <?= $form->field($model, 'prenom')->textInput() ?>
  17. <?= $form->field($model, 'telephone')->textInput() ?>
  18. <?= $form->field($model, 'email')->textInput(['readonly' => true]); ?>
  19. <?= $form->field($model, 'adresse')->textarea() ?>
  20. <h2>Mot de passe</h2>
  21. <p>Renseignez les champs ci-dessous si vous souhaitez modifier votre mot de passe.</p>
  22. <?= $form->field($model, 'password_old')->passwordInput() ?>
  23. <?= $form->field($model, 'password_new')->passwordInput() ?>
  24. <?= $form->field($model, 'password_new_confirm')->passwordInput() ?>
  25. <div class="clr"></div>
  26. <div class="form-group">
  27. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  28. </div>
  29. <?php ActiveForm::end(); ?>
  30. </div>
  31. </div>