<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Connexion';
?>
<div class="row">
<div class="col-md-4 col-md-offset-4">
   <h1 class="text-info"><?= Html::encode($this->title) ?></h1>
   <hr>
        <?php $form = ActiveForm::begin(); ?>
        <?= $form->field($model, 'username')->textInput(['autofocus' => true])->label('Pseudo*') ?>
        <?= $form->field($model, 'password')->passwordInput()->label('Mot de passe*') ?>
        <div class="form-group">
             <?= Html::submitButton('Connexion', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
        </div>
    <?php ActiveForm::end(); ?>
</div>
</div>
