diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 19:44:02 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 19:44:02 -0400 |
commit | c5f59f8c8fc4cea247948c2a57cf8074677121e9 (patch) | |
tree | fc1b5e8a55031e0a15c569e822a3b5a3177df399 | |
parent | 791094df9a49ea5a1d871d445f6180395d4c6cc3 (diff) |
Show the project name when creating a task (#294 and #363)
-rw-r--r-- | app/Template/task_new.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/task_new.php b/app/Template/task_new.php index 51142165..f8e14119 100644 --- a/app/Template/task_new.php +++ b/app/Template/task_new.php @@ -1,9 +1,9 @@ <section id="main"> <div class="page-header"> - <h2><?= t('New task') ?></h2> + <h2><?= Helper\in_list($values['project_id'], $projects_list) ?> > <?= t('New task') ?></h2> </div> <section id="task-section"> - <form method="post" action="?controller=task&action=save" autocomplete="off"> + <form method="post" action="<?= Helper\u('task', 'save') ?>" autocomplete="off"> <?= Helper\form_csrf() ?> @@ -48,8 +48,8 @@ <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> - <?= t('or') ?> <a href="?controller=board&action=show&project_id=<?= $values['project_id'] ?>"><?= t('cancel') ?></a> + <?= t('or') ?> <?= Helper\a(t('cancel'), 'board', 'show', array('project_id' => $values['project_id'])) ?> </div> </form> </section> -</section>
\ No newline at end of file +</section> |