<tr <?php echo MtHaml\Runtime::renderAttributes(array(array('id', ('diagnostic-' . ($diagnostic->id)))), 'html5', 'UTF-8'); ?>>
  <?php $this->renderPartial('/shared/_diagnosticGenericColumns', array('diagnostic' => $diagnostic)); ?>
  <td>
    <?php if($diagnostic->isNew()) { ?>
      <button <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('take-charge' . ' ' . 'btn' . ' ' . 'btn-mini')), array('type', 'button'), array('data-diagnostic-id', ($diagnostic->id)), array('data-confirm-text', (t('Confirm?')))), 'html5', 'UTF-8'); ?>>
        <?php echo htmlspecialchars(t('Take Charge'),ENT_QUOTES,'UTF-8'); ?>
      </button>
    <?php } else if($diagnostic->isTakenInCharge()) { ?>
      <button <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('manage' . ' ' . 'btn' . ' ' . 'btn-mini')), array('type', 'button'), array('data-diagnostic-id', ($diagnostic->id)), array('data-confirm-text', (t('Confirm?')))), 'html5', 'UTF-8'); ?>>
        <?php echo htmlspecialchars(t('Close'),ENT_QUOTES,'UTF-8'); ?>
      </button>
    <?php } else if($diagnostic->isManaged()) { ?>
      <?php echo htmlspecialchars(t('Closed'),ENT_QUOTES,'UTF-8'); ?>
    <?php } ?>
  </td>
</tr>
