summaryrefslogtreecommitdiff
path: root/app/Templates/comment_edit.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-23 09:49:26 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-23 09:49:26 -0400
commit7b53d47d467115a173c642526a7d2474a22f88fb (patch)
tree43bd4f9c16d894028977f2d61476e74778527993 /app/Templates/comment_edit.php
parenta7167f63c51a5fc24f7d5c6212cd125cee8cdb69 (diff)
Improve user interface
Diffstat (limited to 'app/Templates/comment_edit.php')
-rw-r--r--app/Templates/comment_edit.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Templates/comment_edit.php b/app/Templates/comment_edit.php
new file mode 100644
index 00000000..0a17a95e
--- /dev/null
+++ b/app/Templates/comment_edit.php
@@ -0,0 +1,15 @@
+<div class="page-header">
+ <h2><?= t('Edit a comment') ?></h2>
+</div>
+
+<form method="post" action="?controller=comment&amp;action=update&amp;task_id=<?= $task['id'] ?>&amp;comment_id=<?= $comment['id'] ?>" autocomplete="off">
+
+ <?= Helper\form_hidden('id', $values) ?>
+ <?= Helper\form_textarea('comment', $values, $errors, array('required', 'placeholder="'.t('Leave a comment').'"')) ?><br/>
+
+ <div class="form-actions">
+ <input type="submit" value="<?= t('Update') ?>" class="btn btn-blue"/>
+ <?= t('or') ?>
+ <a href="?controller=task&amp;action=show&amp;task_id=<?= $task['id'] ?>"><?= t('cancel') ?></a>
+ </div>
+</form>