From 9570793f68d44179f9b7e0b264e5fbe0ca839c51 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 31 Jan 2016 11:05:47 -0500 Subject: Add a "Me" button to assignee form element --- app/Helper/Task.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/Helper') diff --git a/app/Helper/Task.php b/app/Helper/Task.php index d2c59ee9..06f7d58e 100644 --- a/app/Helper/Task.php +++ b/app/Helper/Task.php @@ -45,6 +45,17 @@ class Task extends Base return $this->taskPermission->canRemoveTask($task); } + public function selectAssignee(array $users, array $values, array $errors = array(), array $attributes = array()) + { + $attributes = array_merge(array('tabindex="3"'), $attributes); + + $html = $this->helper->form->label(t('Assignee'), 'owner_id'); + $html .= $this->helper->form->select('owner_id', $users, $values, $errors, $attributes); + $html .= ''.t('Me').''; + + return $html; + } + public function selectPriority(array $project, array $values) { $html = ''; -- cgit v1.2.3