summaryrefslogtreecommitdiff
path: root/templates
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
parent50051e776f9183471570f2688d0a85f92b309a3c (diff)
Add the possibility to change the assignee directly from the board
Diffstat (limited to 'templates')
-rw-r--r--templates/board_assign.php35
-rw-r--r--templates/board_index.php4
2 files changed, 37 insertions, 2 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
diff --git a/templates/board_index.php b/templates/board_index.php
index 274e8227..ff10a70b 100644
--- a/templates/board_index.php
+++ b/templates/board_index.php
@@ -46,9 +46,9 @@
<span class="task-user">
<?php if (! empty($task['owner_id'])): ?>
- <?= t('Assigned to %s', $task['username']) ?>
+ <a href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>"><?= t('Assigned to %s', $task['username']) ?></a>
<?php else: ?>
- <span class="task-nobody"><?= t('No body assigned') ?></span>
+ <a href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>" class="task-nobody"><?= t('No body assigned') ?></a>
<?php endif ?>
</span>