summaryrefslogtreecommitdiff
path: root/plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php')
-rw-r--r--plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php b/plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php
new file mode 100644
index 00000000..faf1996a
--- /dev/null
+++ b/plugins/TaskIntervalButton/Template/task_add_interval/add_interval_button.php
@@ -0,0 +1,5 @@
+<?php if ($task['is_active'] == 1): ?>
+<li>
+<?= $this->modal->confirm('clock-o', t('Add time interval'), 'TaskIntervalController', 'confirm', array('plugin' => 'TaskIntervalButton', 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+</li>
+<?php endif ?>