<?php if (isset($dataProvider) && count($dataProvider->data)>0) { ?>
  <?php $diagnostics = $dataProvider->data; ?>
  <div class="tableContainer pagination-data-container" data-behavior="NuclearDiagnostic">
    <table class="table table-condensed span12">
      <thead>
        <tr></tr>
        <tr>
          <th></th>
          <th><?php echo htmlspecialchars(t('Type'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Description'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Gate'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Date'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Time'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t('Manage'),ENT_QUOTES,'UTF-8'); ?></th>
          <th><?php echo htmlspecialchars(t(''),ENT_QUOTES,'UTF-8'); ?></th>
        </tr>
      </thead>
      <tbody>
        <?php foreach($diagnostics as $diagnostic) { ?>
          <?php $diagnostic = new DiagnosticPresenter($diagnostic); ?>
          <?php $this->renderPartial('_diagnosticRow', array('diagnostic' => $diagnostic)); ?>
        <?php } ?>
      </tbody>
    </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 } else { ?>
  <h4><?php echo htmlspecialchars(Yii::t("app", "No results"),ENT_QUOTES,'UTF-8'); ?></h4>
<?php } ?>
