<div id="refreshpassword-page">
  <?php $this->pageTitle=Yii::app()->name . ' - New password'; ?>
  <?php $logos = param('logos'); ?>
  <?php $titles = param('appTitles'); ?>
  <?php $loginLogo = $logos['login']; ?>
  <?php $mainTitle = $titles['main_title']; ?>
  <?php $subTitle = $titles['sub_title']; ?>
  <div class="row">
    <div class="span6"></div>
    <?php if(isset($loginLogo)) { ?>
      <center>
        <?php if($mainTitle) { ?>
          <h2>
            <?php echo $mainTitle; ?>
          </h2>
        <?php } ?>
        <?php if($subTitle) { ?>
          <h3>
            <?php echo $subTitle; ?>
          </h3>
        <?php } ?>
        <img <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'login-logo'), array('src', ((Yii::app()->baseUrl) . '/images/' . $loginLogo))), 'html5', 'UTF-8'); ?> />
      </center>
    <?php } ?>
    <div class="span4 refreshpassword-box offset2">
      <h2><?php echo htmlspecialchars(Yii::t('app','Change password'),ENT_QUOTES,'UTF-8'); ?></h2>
      <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array('id'=>'refreshpassword-form','focus' => array($model,$modelfocus),)); ?>
      <?php echo $form->errorSummary($model); ?>
      <?php echo $form->textFieldRow($model,'username', array('class'=>'span4', 'placeholder'=>'username', 'readonly'=>'readonly')); ?>
      <?php echo $form->passwordFieldRow($model,'old_password', array('class'=>'span4', 'placeholder'=>'old password')); ?>
      <?php echo $form->passwordFieldRow($model,'new_password', array('class'=>'span4', 'placeholder'=>'new password')); ?>
      <?php echo $form->passwordFieldRow($model,'repeat_new_password', array('class'=>'span4', 'placeholder'=>'repeat new password')); ?>
      <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=> Yii::t('app', 'Change password'))); ?>
      <?php $this->endWidget(); ?>
    </div>
  </div>
</div>
