#session-reports-viewer-page

  .page-header
    %h2=t('Preview')
  
  .session-reports-viewer-container
  
    %table.table.table-striped.table-condensed
      %thead
        %tr
          %td=t('Gate Group')
          %td=t('Report')
      %tbody
        - foreach($pdfs as $gateGroup => $pdf)
          %tr
            %td=$gateGroup
            %td
              %a.btn.btn-small.show-session-report-btn(data-pdf-report=base64_encode($pdf))
                =t("View")
  
  - $generateBtnDisabled = ""
  - if ( ($workPeriod->generatedReportsCount > 0) )
    - $generateBtnDisabled = "disabled"
  %a.btn.btn-small(class=$generateBtnDisabled href="#{Yii::app()->createAbsoluteUrl('report/createByService', array('serviceID' => $service->ID))}")
    =t("Generate")
          
  #session-report-viewer-modal.modal.hide.fade
    .modal-header
      %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", :type => "button"} x
      %h3=t('Preview')
    .modal-body
      .iframe-container
        %iframe.report-iframe(src="" style="width:100%;height:600px;display:block;margin-left:auto;margin-right:auto")
    .modal-footer