From b4dc602381a367ce9ed1a1bbe28b7903976fdabe Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 18 Feb 2017 18:25:46 -0500 Subject: Send comments by email --- app/Template/comment_mail/create.php | 21 +++++++++++++++++++++ app/Template/comment_mail/email.php | 1 + 2 files changed, 22 insertions(+) create mode 100644 app/Template/comment_mail/create.php create mode 100644 app/Template/comment_mail/email.php (limited to 'app/Template/comment_mail') diff --git a/app/Template/comment_mail/create.php b/app/Template/comment_mail/create.php new file mode 100644 index 00000000..57ddeb39 --- /dev/null +++ b/app/Template/comment_mail/create.php @@ -0,0 +1,21 @@ + +
+ form->csrf() ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?> + + 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( + 'submitLabel' => t('Send by email'), + 'tabindex' => 4, + )) ?> +
diff --git a/app/Template/comment_mail/email.php b/app/Template/comment_mail/email.php new file mode 100644 index 00000000..a89284f4 --- /dev/null +++ b/app/Template/comment_mail/email.php @@ -0,0 +1 @@ +text->markdown($email['comment'], true) ?> -- cgit v1.2.3