summaryrefslogtreecommitdiff
path: root/app/Template/task_popover/change_assignee.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-04 22:08:42 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-04 22:08:42 -0400
commit4fb57006a08e06a344e1a2671b2c61490d472e7e (patch)
tree7819f3dc2f0355b88d8f0b524c4ddcc03e0bb4fb /app/Template/task_popover/change_assignee.php
parent6bdc25490f02649242b1d96025f8da1f4c41884b (diff)
Added generic controller for task popovers
Diffstat (limited to 'app/Template/task_popover/change_assignee.php')
-rw-r--r--app/Template/task_popover/change_assignee.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Template/task_popover/change_assignee.php b/app/Template/task_popover/change_assignee.php
new file mode 100644
index 00000000..bf68c34d
--- /dev/null
+++ b/app/Template/task_popover/change_assignee.php
@@ -0,0 +1,20 @@
+<section id="main">
+ <div class="page-header">
+ <h2><?= t('Change assignee for the task "%s"', $values['title']) ?></h2>
+ </div>
+ <form class="popover-form" method="post" action="<?= $this->url->href('TaskPopover', 'updateAssignee', array('task_id' => $values['id'], 'project_id' => $project['id'])) ?>">
+
+ <?= $this->form->csrf() ?>
+
+ <?= $this->form->hidden('id', $values) ?>
+ <?= $this->form->hidden('project_id', $values) ?>
+
+ <?= $this->task->selectAssignee($users_list, $values, array(), array('autofocus')) ?>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
+ <?= t('or') ?>
+ <?= $this->url->link(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
+ </div>
+ </form>
+</section>