Show the project name when creating a task (#294 and #363)

This commit is contained in:
Frédéric Guillot
2014-10-25 19:44:02 -04:00
parent 791094df9a
commit c5f59f8c8f

View File

@@ -1,9 +1,9 @@
<section id="main"> <section id="main">
<div class="page-header"> <div class="page-header">
<h2><?= t('New task') ?></h2> <h2><?= Helper\in_list($values['project_id'], $projects_list) ?> &gt; <?= t('New task') ?></h2>
</div> </div>
<section id="task-section"> <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() ?> <?= Helper\form_csrf() ?>
@@ -48,8 +48,8 @@
<div class="form-actions"> <div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> <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> </div>
</form> </form>
</section> </section>
</section> </section>