summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-25 19:44:02 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-25 19:44:02 -0400
commitc5f59f8c8fc4cea247948c2a57cf8074677121e9 (patch)
treefc1b5e8a55031e0a15c569e822a3b5a3177df399 /app/Template
parent791094df9a49ea5a1d871d445f6180395d4c6cc3 (diff)
Show the project name when creating a task (#294 and #363)
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/task_new.php8
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) ?> &gt; <?= t('New task') ?></h2>
</div>
<section id="task-section">
- <form method="post" action="?controller=task&amp;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&amp;action=show&amp;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>