diff options
Diffstat (limited to 'app/Template/comments/create.php')
-rw-r--r-- | app/Template/comments/create.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Template/comments/create.php b/app/Template/comments/create.php new file mode 100644 index 00000000..a638d3b8 --- /dev/null +++ b/app/Template/comments/create.php @@ -0,0 +1,24 @@ +<form method="post" action="<?= $this->url->href('comment', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> + <?= $this->form->hidden('task_id', $values) ?> + <?= $this->form->hidden('user_id', $values) ?> + + <div class="markdown-editor-small"> + <?= $this->form->textarea( + 'comment', + $values, + $errors, + array( + 'data-markdown-editor-disable-toolbar="true"', + 'required', + 'placeholder="'.t('Leave a comment').'"', + 'data-mention-search-url="'.$this->url->href('UserHelper', 'mention', array('project_id' => $task['project_id'])).'"', + ), + 'markdown-editor' + ) ?> + </div> + + <div class="form-actions"> + <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> + </div> +</form> |