summaryrefslogtreecommitdiffstats
path: root/apps/tasks/templates/part.addtaskform.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tasks/templates/part.addtaskform.php')
-rw-r--r--apps/tasks/templates/part.addtaskform.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tasks/templates/part.addtaskform.php b/apps/tasks/templates/part.addtaskform.php
new file mode 100644
index 00000000000..0fad5592aa7
--- /dev/null
+++ b/apps/tasks/templates/part.addtaskform.php
@@ -0,0 +1,15 @@
+<form id="tasks_addtaskform">
+ <?php if(count($_['calendars'])==1): ?>
+ <input type="hidden" name="id" value="<?php echo $_['calendars'][0]['id']; ?>">
+ <?php else: ?>
+ <label for="id"><?php echo $l->t('Calendar'); ?></label>
+ <select name="id" size="1">
+ <?php foreach($_['calendars'] as $calendar): ?>
+ <option value="<?php echo $calendar['id']; ?>"><?php echo $calendar['displayname']; ?></option>
+ <?php endforeach; ?>
+ </select>
+ <br>
+ <?php endif; ?>
+ <?php echo $this->inc('part.taskform'); ?>
+ <input type="submit" name="submit" value="<?php echo $l->t('Create Task'); ?>">
+</form>