Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

46 Zeilen
1.4KB

  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>