From 6b9b9d2d1c27600969388ad10d749bb6febc92b6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Jun 2017 17:51:20 -0400 Subject: Add autocomplete dropdown on comment subject and email fields --- app/Template/comment_mail/create.php | 32 +++++++++++++++++++++++++++++++- app/Template/task_mail/create.php | 3 ++- 2 files changed, 33 insertions(+), 2 deletions(-) (limited to 'app/Template') diff --git a/app/Template/comment_mail/create.php b/app/Template/comment_mail/create.php index 019f8a20..8732080a 100644 --- a/app/Template/comment_mail/create.php +++ b/app/Template/comment_mail/create.php @@ -1,7 +1,7 @@ -
+ form->csrf() ?> form->hidden('task_id', $values) ?> form->hidden('user_id', $values) ?> @@ -9,9 +9,39 @@ form->label(t('Email'), 'email') ?> form->email('email', $values, $errors, array('autofocus', 'required', 'tabindex="1"')) ?> + + + + form->label(t('Subject'), 'subject') ?> form->text('subject', $values, $errors, array('required', 'tabindex="2"')) ?> + + + + form->textEditor('comment', $values, $errors, array('required' => true, 'tabindex' => 3)) ?> modal->submitButtons(array( diff --git a/app/Template/task_mail/create.php b/app/Template/task_mail/create.php index 63a515ff..4e843de9 100644 --- a/app/Template/task_mail/create.php +++ b/app/Template/task_mail/create.php @@ -1,7 +1,7 @@ - + form->csrf() ?> form->label(t('Email'), 'email') ?> @@ -22,6 +22,7 @@ form->label(t('Subject'), 'subject') ?> form->text('subject', $values, $errors, array('required', 'tabindex="2"')) ?> +