diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-18 19:38:15 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-18 19:38:15 -0500 |
commit | 2751b200d58e591bf0a838de662443c638fa61f8 (patch) | |
tree | 22e6ae512d08f1aa193c45ce1aa5972c92174d88 /app | |
parent | bd0ed331797717ff9db63216df550d95674ba248 (diff) |
Add link to send comment by email in comment creation form
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/comment/create.php | 5 | ||||
-rw-r--r-- | app/Template/comment_mail/create.php | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php index 8a421759..0e19ac19 100644 --- a/app/Template/comment/create.php +++ b/app/Template/comment/create.php @@ -1,5 +1,10 @@ <div class="page-header"> <h2><?= t('Add a comment') ?></h2> + <ul> + <li> + <?= $this->modal->medium('paper-plane', t('Send by email'), 'CommentMailController', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + </li> + </ul> </div> <form method="post" action="<?= $this->url->href('CommentController', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> <?= $this->form->csrf() ?> diff --git a/app/Template/comment_mail/create.php b/app/Template/comment_mail/create.php index 57ddeb39..019f8a20 100644 --- a/app/Template/comment_mail/create.php +++ b/app/Template/comment_mail/create.php @@ -1,5 +1,5 @@ <div class="page-header"> - <h2><?= t('Create and send comment by email') ?></h2> + <h2><?= t('Create and send a comment by email') ?></h2> </div> <form method="post" action="<?= $this->url->href('CommentMailController', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> <?= $this->form->csrf() ?> |