%form.form-modal(method="post" action="#{Yii::app()->createUrl('report/create')}")
  .modal-header
    %button.close(type="button" data-dismiss="modal" aria-hidden="true")
      &times;
    %h3=t("Run #{work-period-ID} - Confirmation", array('{work-period-ID}' => "$workPeriodID"))
  .modal-body
    - if(!$workPeriodClosed)
      .alert
        %strong
          = t("Warning")
        =t("System will automatically logout.")
    %p
      =t("Do you want to proceed with report generation for session with ID #{workPeriodID}?", array('{workPeriodID}' => $workPeriodID))
    %p
      =t("A new code will be applied to each event belonging to this session.")

  .modal-footer
    %button.btn(type="button" data-dismiss="modal" aria-hidden="true") Annulla
    %input(type="hidden" name="workPeriodID" value=$workPeriodID)
    %button.btn.btn-danger(type="submit")
      =t('Generate')
