<div id="export-pdf-page">
  <?php $this->pageTitle=Yii::app()->name; ?>
  <div class="row exportpdf-box">
    <div class="span3">
      <h2><?php echo htmlspecialchars(Yii::t('app', 'Export to PDF' ),ENT_QUOTES,'UTF-8'); ?></h2>
      <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array('id'=>'exportpdf-form','focus' => array($model,$modelfocus),)); ?>
      <?php echo $form->errorSummary($model); ?>
      <?php echo $form->textFieldRow($model,'title', array('span'=>'3', 'placeholder'=>'title', 'append' => '.pdf')); ?>
      <?php echo $form->passwordFieldRow($model,'viewer_password', array('span'=>'3', 'placeholder'=>'viewer password')); ?>
      <?php echo $form->passwordFieldRow($model,'admin_password', array('span'=>'3', 'placeholder'=>'admin password')); ?>
      <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=> Yii::t('app', 'Export'))); ?>
      <?php $this->endWidget(); ?>
    </div>
    <div class="span8 export-html-view pull-right">
      <div class="export-html-box">
        <iframe <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'span8'), array('id', 'export-pdf-preview'), array('src', ($this->createUrl('pdfExport/preview', array('html'=>$model->varPreview))))), 'html5', 'UTF-8'); ?>>
          #!= $model->varPreview
        </iframe>
      </div>
    </div>
  </div>
</div>
