summaryrefslogtreecommitdiff
path: root/templates/board_assign.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-23 21:20:25 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-23 21:20:25 -0500
commit4b7a72e931a52753855c8993c65ec8a017555f72 (patch)
tree20dfc9e82dc3f2026bc14e9538a5df668ffec201 /templates/board_assign.php
parent50051e776f9183471570f2688d0a85f92b309a3c (diff)
Add the possibility to change the assignee directly from the board
Diffstat (limited to 'templates/board_assign.php')
-rw-r--r--templates/board_assign.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/board_assign.php b/templates/board_assign.php
new file mode 100644
index 00000000..74448a5c
--- /dev/null
+++ b/templates/board_assign.php
@@ -0,0 +1,35 @@
+<section id="main">
+
+ <div class="page-header board">
+ <h2>
+ <?= t('Project "%s"', $current_project_name) ?>
+ </h2>
+ <ul>
+ <?php foreach ($projects as $project_id => $project_name): ?>
+ <?php if ($project_id != $current_project_id): ?>
+ <li>
+ <a href="?controller=board&amp;action=show&amp;project_id=<?= $project_id ?>"><?= Helper\escape($project_name) ?></a>
+ </li>
+ <?php endif ?>
+ <?php endforeach ?>
+ </ul>
+ </div>
+
+ <section>
+ <h3><?= t('Change assignee for the task "%s"', $values['title']) ?></h3>
+ <form method="post" action="?controller=board&amp;action=assignTask" autocomplete="off">
+
+ <?= Helper\form_hidden('id', $values) ?>
+ <?= Helper\form_hidden('project_id', $values) ?>
+
+ <?= Helper\form_label(t('Assignee'), 'owner_id') ?>
+ <?= Helper\form_select('owner_id', $users_list, $values, $errors) ?><br/>
+
+ <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>
+ </div>
+ </form>
+ </section>
+
+</div> \ No newline at end of file