part.addtaskform.php 602 B

12345678910111213141516
  1. <form id="tasks_addtaskform">
  2. <?php if(count($_['calendars'])==1): ?>
  3. <input type="hidden" name="id" value="<?php echo $_['calendars'][0]['id']; ?>">
  4. <?php else: ?>
  5. <label for="id"><?php echo $l->t('Calendar'); ?></label>
  6. <select name="id" size="1">
  7. <?php foreach($_['calendars'] as $calendar): ?>
  8. <option value="<?php echo $calendar['id']; ?>"><?php echo $calendar['displayname']; ?></option>
  9. <?php endforeach; ?>
  10. </select>
  11. <br>
  12. <?php endif; ?>
  13. <?php echo $this->inc('part.taskform'); ?>
  14. <input type="submit" name="submit" value="<?php echo $l->t('Create Task'); ?>">
  15. </form>