diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/task_new.php | 7 | ||||
-rw-r--r-- | templates/task_show.php | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/templates/task_new.php b/templates/task_new.php index 88ffd53f..4280bf80 100644 --- a/templates/task_new.php +++ b/templates/task_new.php @@ -8,8 +8,7 @@ <?= Helper\form_label(t('Title'), 'title') ?> <?= Helper\form_text('title', $values, $errors, array('autofocus required')) ?><br/> - <?= Helper\form_label(t('Project'), 'project_id') ?> - <?= Helper\form_select('project_id', $projects_list, $values, $errors) ?><br/> + <?= Helper\form_hidden('project_id', $values) ?> <?= Helper\form_label(t('Column'), 'column_id') ?> <?= Helper\form_select('column_id', $columns_list, $values, $errors) ?><br/> @@ -30,7 +29,9 @@ <?= Helper\form_textarea('description', $values, $errors) ?><br/> <div class="form-help"><a href="http://kanboard.net/documentation/syntax-guide" target="_blank" rel="noreferrer"><?= t('Write your text in Markdown') ?></a></div> - <?= Helper\form_checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?> + <?php if (! isset($duplicate)): ?> + <?= Helper\form_checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?> + <?php endif ?> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> diff --git a/templates/task_show.php b/templates/task_show.php index cc1d9e25..986b240d 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -3,6 +3,8 @@ <h2>#<?= $task['id'] ?> - <?= Helper\escape($task['title']) ?></h2> <ul> <li><a href="?controller=board&action=show&project_id=<?= $task['project_id'] ?>"><?= t('Back to the board') ?></a></li> + <li><a href="?controller=task&action=duplicate&project_id=<?= $task['project_id'] ?>&task_id=<?= $task['id'] ?>"><?= t('Duplicate') ?></a></li> + <!-- <li><a href="#"><?= t('Duplicate to another project') ?></a></li> --> </ul> </div> <section> |