<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle = 'Login';
$this->breadcrumbs = array(
  'Login',
);
?>

<div class="panel panel-default">
  <div class="panel-heading">
    <center>
      <img class="logo-img img-responsive" src="<?php echo Yii::app()->baseUrl; ?>/image/setting/logo.png" />
    </center>
  </div>
  <div class="panel-body">

    <?php $form = $this->beginWidget('CActiveForm', array(
      'id' => 'login-form',
      'enableAjaxValidation' => true,
      'enableClientValidation' => true,
      'clientOptions' => array(
        'validateOnSubmit' => true,
      ),
      'errorMessageCssClass' => 'alert alert-danger',
      'htmlOptions' => array('enctype' => 'multipart/form-data', 'autocomplete' => 'off'),
    )); ?>

    <?php //echo $form->errorSummary($model, null, null, array('class' => 'alert alert-danger'));
    ?>


    <div class="form-group">
      <?php echo $form->error($model, 'username'); ?>
      <?php echo $form->textField($model, 'username', array('class' => 'form-control text-blue', 'placeholder' => 'Username', 'id' => 'username')); ?>
    </div>
    <div class="form-group">
      <?php echo $form->error($model, 'password'); ?>
      <?php echo $form->passwordField($model, 'password', array('class' => 'form-control text-blue', 'placeholder' => 'Password', 'id' => 'password')); ?>
    </div>
    <div class="form-group login-submit">
      <?php echo CHtml::submitButton('Login', array('class' => 'btn btn-info btn-xl')); ?>
    </div>
    <?php $this->endWidget(); ?>
    <!-- <div class="splash-footer"><span>Don't have an account? <a href="pages-login.html#">Sign Up</a></span></div> -->
  </div>
</div>