_reply_box.blade.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <style>
  2. .CodeMirror, .CodeMirror-scroll {
  3. min-height: 160px !important;
  4. }
  5. .markdown-base{
  6. margin-bottom: 1em;
  7. }
  8. </style>
  9. {{-- 发表回复 --}}
  10. <div class="ui threaded comments comment-list ">
  11. <br>
  12. <div class="ui segment extra-padding comment-composing-box pt-3" style="padding:20px;margin-left:60px">
  13. <div class="reply ui message hide"></div>
  14. <form class="ui reply form topic-reply-form"
  15. onsubmit="return false;"
  16. method="POST"
  17. action="{{ route('api.replies.store') }}"
  18. accept-charset="UTF-8"
  19. id="comment-composing-form">
  20. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  21. <input type="hidden" name="article_id" value="{{ $article->id }}">
  22. <input type="hidden" name="model" value="{{ $input_model }}">
  23. <div class="ui message info">
  24. <i class="icon info" aria-hidden="true"></i>
  25. 请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
  26. </div>
  27. {{-- 回复框 --}}
  28. <div class="markdown-base">
  29. @include('common.markdown_edit')
  30. <textarea
  31. id="markdown-editor"
  32. name="content"
  33. placeholder="分享你的见解~"
  34. rows="3"></textarea>
  35. </div>
  36. {{-- 评论 --}}
  37. <div class="field rm-link-color">
  38. <div class="pull-left meta">
  39. <a href="javascript:;" class="mr-2 ui popover text-mute" data-html="黏贴或拖拽图片至输入<br>框内皆可上传图片">
  40. <i class="icon picture"></i>
  41. </a>
  42. <a href="javascript:;" class="mr-2 ui popover text-mute" data-html="支持除了 H1~H6 以外的<br>GitHub 兼容 Markdown">
  43. 支持 MD
  44. </a>
  45. </div>
  46. <div class="pull-right">
  47. <button class="ui primary labeled icon button no-loading"
  48. type="submit" id="comment-composing-submit">
  49. <i class="icon comment"></i> 评论
  50. </button>
  51. </div>
  52. <div class="clearfix"></div>
  53. </div>
  54. </form>
  55. <div class="clearfix"></div>
  56. {{-- 评论预览 --}}
  57. <div class="box preview markdown-reply fluidbox-content" id="preview-box" style="display: none;border: dashed 1px #ccc;background: #ffffff;border-radius: 6px;box-shadow:none;margin-top: 20px;margin-bottom: 6px;"></div>
  58. </div>
  59. </div>