summaryrefslogtreecommitdiff
path: root/app/Template/project_view/duplicate.php
blob: f0268f6bddee813f2f929a2c264babff9d43097b (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
25
26
27
28
29
30
<div class="page-header">
    <h2><?= t('Clone this project') ?></h2>
</div>

<div class="confirm">
    <p class="alert alert-info">
        <?= t('Which parts of the project do you want to duplicate?') ?>
    </p>
    <form method="post" action="<?= $this->url->href('ProjectViewController', 'doDuplication', array('project_id' => $project['id'], 'duplicate' => 'yes')) ?>" autocomplete="off">

        <?= $this->form->csrf() ?>

        <?php if ($project['is_private'] == 0): ?>
            <?= $this->form->checkbox('projectPermissionModel', t('Permissions'), 1, true) ?>
            <?= $this->form->checkbox('projectRoleModel', t('Custom roles'), 1, true) ?>
        <?php endif ?>

        <?= $this->form->checkbox('categoryModel', t('Categories'), 1, true) ?>
        <?= $this->form->checkbox('tagDuplicationModel', t('Tags'), 1, true) ?>
        <?= $this->form->checkbox('actionModel', t('Actions'), 1, true) ?>
        <?= $this->form->checkbox('customFilterModel', t('Custom filters'), 1, true) ?>
        <?= $this->form->checkbox('projectMetadataModel', t('Metadata'), 1, false) ?>
        <?= $this->form->checkbox('projectTaskDuplicationModel', t('Tasks'), 1, false) ?>

        <div class="form-actions">
            <button type="submit" class="btn btn-red"><?= t('Duplicate') ?></button>
            <?= t('or') ?> <?= $this->url->link(t('cancel'), 'ProjectViewController', 'show', array('project_id' => $project['id'])) ?>
        </div>
    </form>
</div>