From 8bf054a480ecc2d31b857cb27bd6256f1efdd74c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Feb 2017 17:22:10 -0500 Subject: Open comments in board view with a modal dialog instead of tooltip --- app/Template/task_comments/create.php | 8 ++++++++ app/Template/task_comments/show.php | 31 +++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 app/Template/task_comments/create.php create mode 100644 app/Template/task_comments/show.php (limited to 'app/Template/task_comments') diff --git a/app/Template/task_comments/create.php b/app/Template/task_comments/create.php new file mode 100644 index 00000000..05b05120 --- /dev/null +++ b/app/Template/task_comments/create.php @@ -0,0 +1,8 @@ +
+ form->csrf() ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?> + + form->textEditor('comment', $values, $errors, array('required' => true)) ?> + modal->submitButtons() ?> +
diff --git a/app/Template/task_comments/show.php b/app/Template/task_comments/show.php new file mode 100644 index 00000000..18200bc8 --- /dev/null +++ b/app/Template/task_comments/show.php @@ -0,0 +1,31 @@ +
+
+

+
+
+ +
+ + url->icon('sort', t('change sorting'), 'CommentController', 'toggleSorting', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + +
+ + + render('comment/show', array( + 'comment' => $comment, + 'task' => $task, + 'project' => $project, + 'editable' => $editable, + 'is_public' => isset($is_public) && $is_public, + )) ?> + + + + render('task_comments/create', array( + 'values' => array(), + 'errors' => array(), + 'task' => $task, + )) ?> + +
+
-- cgit v1.2.3