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.

signup.php 1.1KB

8 years ago
123456789101112131415161718192021222324252627282930313233
  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><?= 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']); ?>
  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. <div class="form-group">
  23. <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  24. </div>
  25. <?php ActiveForm::end(); ?>
  26. </div>
  27. </div>
  28. </div>