|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- /* @var $this yii\web\View */
- /* @var $model common\models\User */
-
- $this->title = 'Mon profil' ;
-
- ?>
- <div id="profil-user" class="user-update">
-
- <h1 class="title-systeme-commande"><span class="glyphicon glyphicon-user"></span> Mon profil</h1>
- <?php if(isset($edit_ok)): ?>
- <div class="alert alert-success">
- Votre profil a bien été modifié.<br />
- Si vous avez modifié votre adresse email, elle devient votre identifiant de connexion.
- </div>
- <?php endif; ?>
-
- <div class="user-form">
-
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'nom')->textInput() ?>
- <?= $form->field($model, 'prenom')->textInput() ?>
- <?= $form->field($model, 'telephone')->textInput() ?>
- <?= $form->field($model, 'email')->textInput() ?>
- <?= $form->field($model, 'adresse')->textarea() ?>
-
- <h2>Options emails</h2>
-
- <?= $form->field($model, 'no_mail')->checkbox(); ?>
-
- <div id="mails-jours-prod">
- <p class="strong">Recevoir un email pour les jours de production suivants : </p>
- <?= $form->field($model, 'mail_prod_lundi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_mardi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_mercredi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_jeudi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_vendredi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_samedi')->checkbox(); ?>
- <?= $form->field($model, 'mail_prod_dimanche')->checkbox(); ?>
- </div>
-
-
- <div class="clr"></div>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
-
- <?php ActiveForm::end(); ?>
- </div>
-
-
- </div>
|