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

$this->pageTitle = Yii::app()->name . ' - Login';
//$this->breadcrumbs = array(
//  'Login',
//);
?>
<h4 style="height: 48px;
    margin-left: 40px;
    margin-top: 30px;">Please Login</h4><!--

<p>Please fill out the following form with your login credentials:</p>-->

<div class="form" style="margin-left: 40px;">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form secondmainmenu',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>

<!--    <p class="note">Fields with <span class="required">*</span> are required.</p>-->

    <div class="row-fluid">
        <div class="span4">
            <div class="row">
                <div class="span3"> <?php echo $form->labelEx($model, 'username'); ?></div>
                <div class="span3">
                    <?php echo $form->textField($model, 'username'); ?>
                    <?php echo $form->error($model, 'username'); ?>
                </div>
            </div>
        </div>
        <div class="span4">
            <div class="row">
                <div class="span3"><?php echo $form->labelEx($model, 'password'); ?></div>
                <div class="span3">
                    <?php echo $form->passwordField($model, 'password'); ?>
                    <?php echo $form->error($model, 'password'); ?>    </div>
            </div>
        </div>
        <div class="span2">
            <?php
            //$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Login', 'icon' => 'ok'));
            $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'secondary', 'label' => 'Login'));
            ?>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<style>
    
div.form input, div.form textarea, div.form select {
    margin: 0.2em 0 0.5em;
}
</style>