summaryrefslogtreecommitdiff
path: root/app/Template/task/duplicate_project.php
blob: d69da9d525cf390dca78e0ab49e254275d4db448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="page-header">
    <h2><?= t('Duplicate the task to another project') ?></h2>
</div>

<?php if (empty($projects_list)): ?>
    <p class="alert"><?= t('No project') ?></p>
<?php else: ?>

    <form method="post" action="<?= $this->u('task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">

        <?= $this->formCsrf() ?>

        <?= $this->formHidden('id', $values) ?>
        <?= $this->formLabel(t('Project'), 'project_id') ?>
        <?= $this->formSelect('project_id', $projects_list, $values, $errors) ?><br/>

        <div class="form-actions">
            <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
            <?= t('or') ?>
            <?= $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'])) ?>
        </div>
    </form>

<?php endif ?>