part.taskform.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <label for="summary"><?php echo $l->t('Summary'); ?></label>
  2. <input type="text" id="summary" name="summary" placeholder="<?php echo $l->t('Summary of the task');?>" value="<?php echo isset($_['details']->SUMMARY) ? $_['details']->SUMMARY[0]->value : '' ?>">
  3. <br>
  4. <label for="location"><?php echo $l->t('Location'); ?></label>
  5. <input type="text" id="location" name="location" placeholder="<?php echo $l->t('Location of the task');?>" value="<?php echo isset($_['details']->LOCATION) ? $_['details']->LOCATION[0]->value : '' ?>">
  6. <br>
  7. <label for="categories"><?php echo $l->t('Categories'); ?></label>
  8. <input id="categories" name="categories" type="text" placeholder="<?php echo $l->t('Separate categories with commas'); ?>" value="<?php echo isset($_['categories']) ? $_['categories'] : '' ?>">
  9. <a class="action edit" onclick="$(this).tipsy('hide');OCCategories.edit();" title="<?php echo $l->t('Edit categories'); ?>"><img alt="<?php echo $l->t('Edit categories'); ?>" src="<?php echo OCP\image_path('core','actions/rename.svg')?>" class="svg action" style="width: 16px; height: 16px;"></a>
  10. <br>
  11. <label for="due"><?php echo $l->t('Due'); ?></label>
  12. <input type="text" id="due" name="due" placeholder="<?php echo $l->t('Due date') ?>" value="<?php echo isset($_['details']->DUE) ? $l->l('datetime', $_['details']->DUE[0]->getDateTime()) : '' ?>">
  13. <br>
  14. <select name="percent_complete" id="percent_complete">
  15. <?php
  16. foreach($_['percent_options'] as $percent){
  17. echo '<option value="' . $percent . '"' . (($_['details']->__get('PERCENT-COMPLETE') && $percent == $_['details']->__get('PERCENT-COMPLETE')->value) ? ' selected="selected"' : '') . '>' . $percent . ' %</option>';
  18. }
  19. ?>
  20. </select>
  21. <label for="percent_complete"><?php echo $l->t('Complete'); ?></label>
  22. <span id="complete"<?php echo ($_['details']->__get('PERCENT-COMPLETE') && $_['details']->__get('PERCENT-COMPLETE')->value == 100) ? '' : ' style="display:none;"' ?>><label for="completed"><?php echo $l->t('completed on'); ?></label>
  23. <input type="text" id="completed" name="completed" value="<?php echo isset($_['details']->COMPLETED) ? $l->l('datetime', $_['details']->COMPLETED[0]->getDateTime()) : '' ?>"></span>
  24. <br>
  25. <label for="priority"><?php echo $l->t('Priority'); ?></label>
  26. <select name="priority">
  27. <?php
  28. foreach($_['priority_options'] as $priority => $label){
  29. echo '<option value="' . $priority . '"' . ((isset($_['details']->PRIORITY) && $priority == $_['details']->PRIORITY->value) ? ' selected="selected"' : '') . '>' . $label . '</option>';
  30. }
  31. ?>
  32. </select>
  33. <br>
  34. <label for="description"><?php echo $l->t('Description'); ?></label><br>
  35. <textarea placeholder="<?php echo $l->t('Description of the task');?>" name="description"><?php echo isset($_['details']->DESCRIPTION) ? $_['details']->DESCRIPTION[0]->value : '' ?></textarea>
  36. <br>