<?php if(isset($dataProvider) && count($dataProvider->data)>0) { ?>
  <?php $workPeriods = $dataProvider->data; ?>
  <?php $this->renderPartial('../dashboard/workPeriod/_eventsReport', array('workPeriods' => $workPeriods, 'all' => $all, 'pagination'=> true)); ?>
  <?php if (isset($dataProvider->pagination)) { ?>
    <div class="pagination">
      <?php $this->widget('bootstrap.widgets.TbPager', array('pages' => $dataProvider->pagination)); ?>
    </div>
  <?php } ?>
<?php } ?>
