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.

38 line
1.5KB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\bootstrap\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $form yii\bootstrap\ActiveForm */
  6. /* @var $model \frontend\models\SignupForm */
  7. $this->title = 'Inscription';
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="site-signup">
  11. <h1 class="title-systeme-commande"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<?= Html::encode($this->title) ?></h1>
  12. <p>Veuillez remplir les champs suivants afin de créer votre compte.<br />
  13. Tous les champs sont obligatoires.</p>
  14. <div class="row">
  15. <div class="col-lg-5">
  16. <?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?>
  17. <?= $form->field($model, 'email') ?>
  18. <?= $form->field($model, 'password')->passwordInput() ?>
  19. <?= $form->field($model, 'nom') ?>
  20. <?= $form->field($model, 'prenom') ?>
  21. <?= $form->field($model, 'telephone') ?>
  22. <?= $form->field($model, 'is_boulanger')->checkbox() ?>
  23. <div id="champs-boulanger">
  24. <?= $form->field($model, 'nom_magasin') ?>
  25. <?= $form->field($model, 'siret') ?>
  26. </div>
  27. <div class="form-group">
  28. <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  29. </div>
  30. <?php ActiveForm::end(); ?>
  31. </div>
  32. </div>
  33. </div>