From 0d55f5aa35d21b79c5d79f7214c4c9e05b1d2684 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Mar 2014 22:10:43 -0400 Subject: Comment edit/remove actions --- templates/comment_forbidden.php | 9 +++++++++ templates/comment_remove.php | 18 ++++++++++++++++++ templates/comment_show.php | 36 ++++++++++++++++++++++++++++++++++++ templates/task_show.php | 21 +++++++++++++-------- 4 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 templates/comment_forbidden.php create mode 100644 templates/comment_remove.php create mode 100644 templates/comment_show.php (limited to 'templates') diff --git a/templates/comment_forbidden.php b/templates/comment_forbidden.php new file mode 100644 index 00000000..eeea8404 --- /dev/null +++ b/templates/comment_forbidden.php @@ -0,0 +1,9 @@ +
+ + +

+ +

+
\ No newline at end of file diff --git a/templates/comment_remove.php b/templates/comment_remove.php new file mode 100644 index 00000000..ad1b8e4a --- /dev/null +++ b/templates/comment_remove.php @@ -0,0 +1,18 @@ +
+ + +
+

+ +

+ + $comment)) ?> + +
+ + +
+
+
\ No newline at end of file diff --git a/templates/comment_show.php b/templates/comment_show.php new file mode 100644 index 00000000..24bf9070 --- /dev/null +++ b/templates/comment_show.php @@ -0,0 +1,36 @@ +
+

+ @ +

+ + + + + +
+ + +
+ +
+ + + +
+
+ +
+ +
+ +
\ No newline at end of file diff --git a/templates/task_show.php b/templates/task_show.php index 986b240d..409e5205 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -8,7 +8,7 @@
-

+

@@ -60,7 +60,7 @@
-

+

@@ -78,19 +78,23 @@ -

+

    -
    -

    @

    - -
    + $comment, + 'task' => $task, + 'display_edit_form' => $comment['id'] == $comment_edit_form['values']['id'], + 'values' => $comment_edit_form['values'] + array('comment' => $comment['comment']), + 'errors' => $comment_edit_form['errors'] + )) ?>
-
+ + @@ -101,5 +105,6 @@
+
-- cgit v1.2.3