diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-23 09:49:26 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-23 09:49:26 -0400 |
commit | 7b53d47d467115a173c642526a7d2474a22f88fb (patch) | |
tree | 43bd4f9c16d894028977f2d61476e74778527993 /app/Templates/comment_create.php | |
parent | a7167f63c51a5fc24f7d5c6212cd125cee8cdb69 (diff) |
Improve user interface
Diffstat (limited to 'app/Templates/comment_create.php')
-rw-r--r-- | app/Templates/comment_create.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Templates/comment_create.php b/app/Templates/comment_create.php new file mode 100644 index 00000000..a566d9c8 --- /dev/null +++ b/app/Templates/comment_create.php @@ -0,0 +1,17 @@ +<div class="page-header"> + <h2><?= t('Add a comment') ?></h2> +</div> + +<form method="post" action="?controller=comment&action=save&task_id=<?= $task['id'] ?>" autocomplete="off"> + + <?= Helper\form_hidden('task_id', $values) ?> + <?= Helper\form_hidden('user_id', $values) ?> + <?= Helper\form_textarea('comment', $values, $errors, array('required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?><br/> + <div class="form-help"><a href="http://kanboard.net/documentation/syntax-guide" target="_blank" rel="noreferrer"><?= t('Write your text in Markdown') ?></a></div> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + <?= t('or') ?> + <a href="?controller=task&action=show&task_id=<?= $task['id'] ?>"><?= t('cancel') ?></a> + </div> +</form> |