您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

69 行
3.6KB

  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. <div class="row">
  13. <div class="col-lg-5">
  14. <?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?>
  15. <?= $form->field($model, 'email') ?>
  16. <?= $form->field($model, 'password')->passwordInput() ?>
  17. <?= $form->field($model, 'nom') ?>
  18. <?= $form->field($model, 'prenom') ?>
  19. <?= $form->field($model, 'telephone') ?>
  20. <?php //$form->field($model, 'is_boulanger')->checkbox() ?>
  21. <div id="client-boulanger" class="btn-group" data-toggle="buttons">
  22. <label class="btn btn-default <?php if($model->option_client_boulanger == 'client' || !$model->option_client_boulanger): ?>active<?php endif; ?>">
  23. <input type="radio" name="SignupForm[option_client_boulanger]" value="client" id="option-client" autocomplete="off" <?php if($model->option_client_boulanger == 'client' || !$model->option_client_boulanger): ?>checked<?php endif; ?>> Je suis client
  24. </label>
  25. <label class="btn btn-default <?php if($model->option_client_boulanger == 'boulanger'): ?>active<?php endif; ?>">
  26. <input type="radio" name="SignupForm[option_client_boulanger]" value="boulanger" id="option-boulanger" autocomplete="off" <?php if($model->option_client_boulanger == 'boulanger'): ?>checked<?php endif; ?>> Je suis boulanger
  27. </label>
  28. </div>
  29. <div id="champs-boulanger">
  30. <?= $form->field($model, 'nom_magasin') ?>
  31. <?= $form->field($model, 'siret') ?>
  32. <?= $form->field($model, 'code_postal') ?>
  33. <?= $form->field($model, 'ville') ?>
  34. <?= $form->field($model, 'cgv')->checkbox()->label('J\'accepte les <a data-toggle="modal" data-target="#modal-cgv" href="javascript:void(0);">conditions générales de vente</a>') ?>
  35. </div>
  36. <div id="champs-client">
  37. <?= $form->field($model, 'id_etablissement')->dropDownList($data_etablissements_dispos, ['prompt' => '--','encode' => false,'options' => $options_etablissements_dispos]) ?>
  38. </div>
  39. <div class="form-group" id="boutons-inscrire">
  40. <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  41. </div>
  42. <?php ActiveForm::end(); ?>
  43. </div>
  44. </div>
  45. </div>
  46. <!-- CGV -->
  47. <div class="modal fade" id="modal-cgv" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  48. <div class="modal-dialog modal-lg" role="document">
  49. <div class="modal-content">
  50. <div class="modal-header">
  51. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  52. <h4 class="modal-title" id="myModalLabel">Conditions générales de vente</h4>
  53. </div>
  54. <div class="modal-body">
  55. <?= $this->render('_cgv_content.php'); ?>
  56. </div>
  57. <div class="modal-footer">
  58. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  59. </div>
  60. </div>
  61. </div>
  62. </div>