summaryrefslogtreecommitdiff
path: root/app/Template/comment/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/comment/edit.php')
-rw-r--r--app/Template/comment/edit.php25
1 files changed, 8 insertions, 17 deletions
diff --git a/app/Template/comment/edit.php b/app/Template/comment/edit.php
index ad6f58fb..4036b673 100644
--- a/app/Template/comment/edit.php
+++ b/app/Template/comment/edit.php
@@ -9,25 +9,16 @@
<?= $this->form->hidden('task_id', $values) ?>
<?= $this->form->hidden('user_id', $values) ?>
- <div class="form-tabs">
- <ul class="form-tabs-nav">
- <li class="form-tab form-tab-selected">
- <i class="fa fa-pencil-square-o fa-fw"></i><a id="markdown-write" href="#"><?= t('Write') ?></a>
- </li>
- <li class="form-tab">
- <a id="markdown-preview" href="#"><i class="fa fa-eye fa-fw"></i><?= t('Preview') ?></a>
- </li>
- </ul>
- <div class="write-area">
- <?= $this->form->textarea('comment', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?>
- </div>
- <div class="preview-area">
- <div class="markdown"></div>
- </div>
+ <div class="markdown-editor-small">
+ <?= $this->form->textarea(
+ 'comment',
+ $values,
+ $errors,
+ array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'),
+ 'markdown-editor'
+ ) ?>
</div>
- <div class="form-help"><?= $this->url->doc(t('Write your text in Markdown'), 'syntax-guide') ?></div>
-
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
<?= t('or') ?>