summaryrefslogtreecommitdiff
path: root/app/Template/task_modification/edit_task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-29 18:44:21 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-29 18:44:21 +0100
commit178eda18872f99840937dc3d23629b5d7aa7cee0 (patch)
treee2e27f289b5620e92b1accddcea9489286a65243 /app/Template/task_modification/edit_task.php
parentb4c5e36ee4cbf34020eb043e54e9b7294062acee (diff)
Add autocompletion in textarea for user mentions
Diffstat (limited to 'app/Template/task_modification/edit_task.php')
-rw-r--r--app/Template/task_modification/edit_task.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/Template/task_modification/edit_task.php b/app/Template/task_modification/edit_task.php
index f4d7449a..6fdb77b5 100644
--- a/app/Template/task_modification/edit_task.php
+++ b/app/Template/task_modification/edit_task.php
@@ -13,7 +13,16 @@
<?= $this->form->label(t('Description'), 'description') ?>
<div class="form-tabs">
<div class="write-area">
- <?= $this->form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"', 'tabindex="2"')) ?>
+ <?= $this->form->textarea(
+ 'description',
+ $values,
+ $errors,
+ array(
+ 'placeholder="'.t('Leave a description').'"',
+ 'tabindex="2"',
+ 'data-mention-search-url="'.$this->url->href('UserHelper', 'mention', array('project_id' => $task['project_id'])).'"'
+ )
+ ) ?>
</div>
<div class="preview-area">
<div class="markdown"></div>