<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */
$this->pageTitle = Yii::app()->name;
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'htmlOptions'=>array(
      'role'=>'form',
    ),
));
?>
<div class="form-group">
    <?php echo $form->label($model, 'login', array('class'=>'control-label')); ?>
    <?php echo $form->textField($model, 'login', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('login'))); ?>
    <?php echo $form->error($model, 'login'); ?>
</div>

<div class="form-group">
    <?php echo $form->label($model, 'password', array('class'=>'control-label')); ?>
    <?php echo $form->passwordField($model, 'password', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('password'))); ?>
    <?php echo $form->error($model, 'password'); ?>
</div>

<?php echo CHtml::submitButton(Yii::t('client_layout', 'Войти'), array('class' => 'btn-block form-control')); ?>
<?php $this->endWidget();?>
<hr>