diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-25 22:28:09 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-25 22:28:09 -0400 |
commit | ff892c5d25e0bab560f005c788189d38c2bcab7b (patch) | |
tree | 72edfcffd52db61f9a7632f860b6d914445593ab /app/Template/project_view/duplicate.php | |
parent | 872dc79dbd8b04424520e32675a6e0dcb6ed44bc (diff) |
Split project controller into multiple classes
Diffstat (limited to 'app/Template/project_view/duplicate.php')
-rw-r--r-- | app/Template/project_view/duplicate.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/Template/project_view/duplicate.php b/app/Template/project_view/duplicate.php new file mode 100644 index 00000000..41ae39df --- /dev/null +++ b/app/Template/project_view/duplicate.php @@ -0,0 +1,28 @@ +<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('projectPermission', t('Permissions'), 1, true) ?> + <?php endif ?> + + <?= $this->form->checkbox('category', t('Categories'), 1, true) ?> + <?= $this->form->checkbox('action', t('Actions'), 1, true) ?> + <?= $this->form->checkbox('swimlane', t('Swimlanes'), 1, false) ?> + <?= $this->form->checkbox('task', t('Tasks'), 1, false) ?> + <?= $this->form->checkbox('projectMetadata', t('Metadata'), 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> |