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.

43 satır
1.3KB

  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. 'enableClientScript' => false
  19. ]); ?>
  20. <?= $form->field($model, 'nom')->textInput() ?>
  21. <?= $form->field($model, 'prenom')->textInput() ?>
  22. <?= $form->field($model, 'telephone')->textInput() ?>
  23. <?= $form->field($model, 'email')->textInput() ?>
  24. <?= $form->field($model, 'adresse')->textarea() ?>
  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>