|
- <?php
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
-
- /* @var $this yii\web\View */
- /* @var $form yii\bootstrap\ActiveForm */
- /* @var $model \frontend\models\SignupForm */
-
- $this->title = 'Inscription';
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="site-signup">
- <h1 class="title-systeme-commande"><span class="glyphicon glyphicon-user"></span> <?= Html::encode($this->title) ?></h1>
-
- <p>Veuillez remplir les champs suivants afin de créer votre compte.<br />
- Tous les champs sont obligatoires.</p>
-
- <div class="row">
- <div class="col-lg-5">
- <?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?>
- <?= $form->field($model, 'email') ?>
- <?= $form->field($model, 'password')->passwordInput() ?>
- <?= $form->field($model, 'nom') ?>
- <?= $form->field($model, 'prenom') ?>
- <?= $form->field($model, 'telephone') ?>
- <?= $form->field($model, 'is_boulanger')->checkbox() ?>
- <div id="champs-boulanger">
- <?= $form->field($model, 'nom_magasin') ?>
- <?= $form->field($model, 'siret') ?>
- </div>
- <div class="form-group">
- <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
|