part.details.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php if(isset($_['details']->SUMMARY)): ?>
  2. <table>
  3. <?php
  4. echo $this->inc('part.property', array('label' => $l->t('Summary'), 'property' => $_['details']->SUMMARY));
  5. if(isset($_['details']->LOCATION)):
  6. echo $this->inc('part.property', array('label' => $l->t('Location'), 'property' => $_['details']->LOCATION));
  7. endif;
  8. if(isset($_['details']->CATEGORIES)):
  9. echo $this->inc('part.property', array('label' => $l->t('Categories'), 'property' => $_['details']->CATEGORIES));
  10. endif;
  11. if(isset($_['details']->DUE)):
  12. echo $this->inc('part.property', array('label' => $l->t('Due'), 'property' => $_['details']->DUE[0]));
  13. endif;
  14. if(isset($_['details']->PRIORITY)):
  15. echo $this->inc('part.property', array('label' => $l->t('Priority'), 'property' => $_['details']->PRIORITY[0], 'options' => $_['priority_options']));
  16. endif;
  17. if($_['details']->__isset('PERCENT-COMPLETE') || isset($_['details']->COMPLETED)):
  18. ?>
  19. <tr>
  20. <th>
  21. <?php echo $l->t('Complete') ?>
  22. </th>
  23. <td>
  24. <?php if($_['details']->__isset('PERCENT-COMPLETE')):
  25. echo $_['details']->__get('PERCENT-COMPLETE')->value.' % ';
  26. endif;
  27. if(isset($_['details']->COMPLETED)):
  28. echo $l->t('on '). $l->l('datetime', $_['details']->COMPLETED[0]->getDateTime());
  29. endif;
  30. echo '</tr>';
  31. endif;
  32. if(isset($_['details']->DESCRIPTION)):
  33. echo $this->inc('part.property', array('label' => $l->t('Description'), 'property' => $_['details']->DESCRIPTION));
  34. endif; ?>
  35. </table>
  36. <form>
  37. <input type="button" id="tasks_delete" value="<?php echo $l->t('Delete');?>">
  38. <input type="button" id="tasks_edit" value="<?php echo $l->t('Edit');?>">
  39. </form>
  40. <?php else: ?>
  41. <?php //var_dump($_['details']); ?>
  42. <?php endif ?>