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.

58 lines
2.0KB

  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. <h2>Options emails</h2>
  24. <?= $form->field($model, 'no_mail')->checkbox(); ?>
  25. <div id="mails-jours-prod">
  26. <p class="strong">Recevoir un email pour les jours de production suivants : </p>
  27. <?= $form->field($model, 'mail_prod_lundi')->checkbox(); ?>
  28. <?= $form->field($model, 'mail_prod_mardi')->checkbox(); ?>
  29. <?= $form->field($model, 'mail_prod_mercredi')->checkbox(); ?>
  30. <?= $form->field($model, 'mail_prod_jeudi')->checkbox(); ?>
  31. <?= $form->field($model, 'mail_prod_vendredi')->checkbox(); ?>
  32. <?= $form->field($model, 'mail_prod_samedi')->checkbox(); ?>
  33. <?= $form->field($model, 'mail_prod_dimanche')->checkbox(); ?>
  34. </div>
  35. <div class="clr"></div>
  36. <div class="form-group">
  37. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  38. </div>
  39. <?php ActiveForm::end(); ?>
  40. </div>
  41. </div>