#login-page

- $logos = param('logos')
- $titles = param('appTitles')
- $loginLogoStyle = paramdeep('logosStyles', 'login')

- $loginLogo = $logos['login']
- $mainTitle = $titles['main_title']
- $mainTitleIsHtml = $titles['main_title_is_html']
- $subTitle = $titles['sub_title']
- $subTitleIsHtml = $titles['sub_title_is_html']

.row
  .span6
    - if(isset($loginLogo))
      %center  
        -if($mainTitle)
          -if($mainTitleIsHtml)
            !=$mainTitle
          -else
            %h2
              = $mainTitle
        -if($subTitle)
          -if($subTitleIsHtml)
            !=$subTitle
          -else
            %h3
              = $subTitle
          
        %img.login-logo(src="#{Yii::app()->baseUrl}/images/#{$loginLogo}" style="#{$loginLogoStyle}")

  .login-box.span4.offset2
    %h2= Yii::t('app','Login')

    - $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', |
        array(                                                   |
          'id'=>'login-form',                                    |
          'focus' => array($model,'username'),                   |
        )                                                        |
      )                                                          |

    != $form->errorSummary($model)
    != $form->textFieldRow($model,'username', array('class'=>'span4', 'placeholder'=>'username'))
    != $form->passwordFieldRow($model,'password', array('class'=>'span4', 'placeholder'=>'password'))

    - $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=> Yii::t('app', 'Login')))
    - $this->endWidget()
