summaryrefslogtreecommitdiff
path: root/app/Template/task_creation/duplicate_projects.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task_creation/duplicate_projects.php')
-rw-r--r--app/Template/task_creation/duplicate_projects.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/Template/task_creation/duplicate_projects.php b/app/Template/task_creation/duplicate_projects.php
new file mode 100644
index 00000000..dc0fa105
--- /dev/null
+++ b/app/Template/task_creation/duplicate_projects.php
@@ -0,0 +1,28 @@
+<div class="page-header">
+ <h2><?= $this->text->e($project['name']) ?> &gt; <?= $this->text->e($task['title']) ?></h2>
+</div>
+
+<?php if (empty($projects_list)): ?>
+ <p class="alert"><?= t('There is no destination project available.') ?></p>
+ <div class="form-actions">
+ <?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $task['project_id']), false, 'close-popover btn') ?>
+ </div>
+<?php else: ?>
+ <form class="popover-form" method="post" action="<?= $this->url->href('TaskCreationController', 'duplicateProjects', array('project_id' => $task['project_id'])) ?>" autocomplete="off">
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('task_id', $values) ?>
+
+ <?= $this->form->select(
+ 'project_ids[]',
+ $projects_list,
+ $values,
+ array(),
+ array('multiple')
+ ) ?>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue"><?= t('Duplicate') ?></button>
+ <?= t('or') ?> <?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?>
+ </div>
+ </form>
+<?php endif ?>