Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

51 rinda
2.7KB

  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. </div>
  35. <div id="champs-client">
  36. <?= $form->field($model, 'id_etablissement')->dropDownList($data_etablissements_dispos, ['prompt' => '--','encode' => false,'options' => $options_etablissements_dispos]) ?>
  37. </div>
  38. <div class="form-group" id="boutons-inscrire">
  39. <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  40. </div>
  41. <?php ActiveForm::end(); ?>
  42. </div>
  43. </div>
  44. </div>