diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-19 21:49:39 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-19 21:49:39 -0400 |
commit | ab63ffafc565e75c73c27910abd465bebb09306e (patch) | |
tree | 795e09656cfaf3a2042b714dcc3850c9555dec72 /templates/task_new.php | |
parent | 41dd9b2eff07434a3393b20dcd875e76ac3846b3 (diff) |
Task duplication
Diffstat (limited to 'templates/task_new.php')
-rw-r--r-- | templates/task_new.php | 7 |
1 files changed, 4 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"/> |