Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

signup.php 1.6KB

8 lat temu
8 lat temu
8 lat temu
8 lat temu
123456789101112131415161718192021222324252627282930313233343536373839
  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. <?= $form->field($model, 'code_postal') ?>
  27. <?= $form->field($model, 'ville') ?>
  28. </div>
  29. <div class="form-group">
  30. <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  31. </div>
  32. <?php ActiveForm::end(); ?>
  33. </div>
  34. </div>
  35. </div>