#export-pdf-page

  - $this->pageTitle=Yii::app()->name
  
  .row.exportpdf-box
    .span3

      %h2= Yii::t('app', 'Export to PDF' )

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

      != $form->errorSummary($model)
      != $form->textFieldRow($model,'title', array('span'=>'3', 'placeholder'=>'title', 'append' => '.pdf'))
      != $form->passwordFieldRow($model,'viewer_password', array('span'=>'3', 'placeholder'=>'viewer password'))
      != $form->passwordFieldRow($model,'admin_password', array('span'=>'3', 'placeholder'=>'admin password'))
    
      - $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=> Yii::t('app', 'Export')))
      
      - $this->endWidget()
      
    .span8.export-html-view.pull-right
      .export-html-box
        %iframe.span8#export-pdf-preview(src="#{$this->createUrl('pdfExport/preview', array('html'=>$model->varPreview))}")
          #!= $model->varPreview
