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.

35 lines
1.2KB

  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 \common\models\LoginForm */
  7. $this->title = 'Connexion';
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="site-login">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <div class="row">
  13. <div class="col-lg-5">
  14. <?php if(YII_ENV == 'demo') : ?>
  15. <div class="alert alert-warning">
  16. Identifiant : <strong>boulanger@laboiteapain.net</strong><br />
  17. Mot de passe : <strong>laboiteapain</strong>
  18. </div>
  19. <?php endif; ?>
  20. <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
  21. <?= $form->field($model, 'email') ?>
  22. <?= $form->field($model, 'password')->passwordInput() ?>
  23. <?= $form->field($model, 'rememberMe')->checkbox() ?>
  24. <div class="form-group">
  25. <?= Html::submitButton('Connexion', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
  26. </div>
  27. <?php ActiveForm::end(); ?>
  28. </div>
  29. </div>
  30. </div>