<?php if(!is_bool($canEdit)) { ?>
  <?php $canEdit = $this->canEdit(); ?>
<?php } ?>
<?php if(isset($dataProvider) && count($dataProvider->data)>0) { ?>
  <?php $services = $dataProvider->data; ?>
  <div class="tableContainer pagination-data-container" data-behavior="NuclearService" style="display:table;">
    <table class="table table-striped table-services table-hover span12">
      <thead>
        <tr>
          <th><?php echo htmlspecialchars(Yii::t("app", "Task"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Start Date"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "End Date"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "# Events"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Examined"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Validated [ A / I / P ]"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Reported"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Exported"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Responsible"),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(Yii::t("app", "Actions"),ENT_QUOTES,'UTF-8'); ?></th>
        </tr>
        <tbody>
          <?php foreach($services as $service) { ?>
            <?php $this->renderPartial('_serviceRow', get_defined_vars()); ?>
          <?php } ?>
        </tbody>
      </thead>
    </table>
  </div>
  <?php if (isset($dataProvider->pagination)) { ?>
    <div class="pagination pagination-links-container">
      <?php $this->widget('bootstrap.widgets.TbPager', array('pages' => $dataProvider->pagination)); ?>
    </div>
  <?php } ?>
<?php } ?>
