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.

41 satır
1.2KB

  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. <?php if(isset($edit_ok)): ?>
  11. <div class="alert alert-success">
  12. Votre profil a bien été modifié.<br />
  13. Si vous avez modifié votre adresse email, elle devient votre identifiant de connexion.
  14. </div>
  15. <?php endif; ?>
  16. <div class="user-form">
  17. <?php $form = ActiveForm::begin(); ?>
  18. <?= $form->field($model, 'nom')->textInput() ?>
  19. <?= $form->field($model, 'prenom')->textInput() ?>
  20. <?= $form->field($model, 'telephone')->textInput() ?>
  21. <?= $form->field($model, 'email')->textInput() ?>
  22. <?= $form->field($model, 'adresse')->textarea() ?>
  23. <div class="clr"></div>
  24. <div class="form-group">
  25. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  26. </div>
  27. <?php ActiveForm::end(); ?>
  28. </div>
  29. </div>