.box.session.alert.alert-normal
  %h3 Cedolino 
  %p Ultime 5 sessioni di lavoro

  %table.table.table-striped.table-condensed
    %thead
      %tr
        %th Sessione
        %th Inizio
        %th Fine
        %th Durata
        %th Cedolino
    %tbody
      - foreach($workPeriods as $workPeriod)
        %tr
          %td
            %a(href="#" data-behavior="AjaxModal" data-ajax-modal-target="#modal-report-detail" data-ajax-modal-url="#{Yii::app()->createAbsoluteUrl('report/viewSummary', array('workPeriodID' => $workPeriod->id))}")
              %i.icon-zoom-in
              = $workPeriod->id
          %td= $workPeriod->login_at->format(DateHelper::ISO9075_DATETIME)
          %td= $workPeriod->last_action_at->format(DateHelper::ISO9075_DATETIME)
          %td= $workPeriod->duration->format("%h ore %i min")
          %td
            %a.btn.btn-small(href="#" data-behavior="AjaxModal" data-ajax-modal-target="#modal-payslip-confirm" data-ajax-modal-url="#{Yii::app()->createAbsoluteUrl('paySlip/confirm', array('workPeriodID' => $workPeriod->id))}") Genera

#modal-payslip-detail.modal.hide.fade

#modal-payslip-confirm.modal.hide.fade
