From 86928e37bced3d99f5cc2f449fb458c2344fd317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Tue, 7 Oct 2014 11:27:46 -0400 Subject: [PATCH] Add comment creation form to the task summary page (pull-request #300) --- app/Templates/comment_create.php | 8 +++++--- app/Templates/task_comments.php | 12 ++++++++++++ assets/css/app.css | 5 +++++ docs/coding-standards.markdown | 1 + 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/Templates/comment_create.php b/app/Templates/comment_create.php index 71a4f0447..11772f754 100644 --- a/app/Templates/comment_create.php +++ b/app/Templates/comment_create.php @@ -6,12 +6,14 @@ -
+
- - + + + +
diff --git a/app/Templates/task_comments.php b/app/Templates/task_comments.php index acd84952f..12deff985 100644 --- a/app/Templates/task_comments.php +++ b/app/Templates/task_comments.php @@ -11,5 +11,17 @@ 'not_editable' => isset($not_editable) && $not_editable, )) ?> + + + true, + 'values' => array( + 'user_id' => Helper\get_user_id(), + 'task_id' => $task['id'], + ), + 'errors' => array(), + 'task' => $task + )) ?> + \ No newline at end of file diff --git a/assets/css/app.css b/assets/css/app.css index a2255075f..b4f8f6a6b 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -904,6 +904,11 @@ a.task-board-nobody { max-width: 800px; } +#comments .comment-textarea { + height: 80px; + width: 500px; +} + /* subtasks */ .subtasks-table { font-size: 0.85em; diff --git a/docs/coding-standards.markdown b/docs/coding-standards.markdown index a69751909..e0e762dba 100644 --- a/docs/coding-standards.markdown +++ b/docs/coding-standards.markdown @@ -7,6 +7,7 @@ PHP code - Indentation: 4 spaces - Line return: Unix => `\n` - Encoding: UTF-8 +- Use only the opening tags `