body.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% load i18n %}
  2. <div id="{{ editor.auto_id }}" class="misago-editor">
  3. <div class="editor-toolbar">
  4. <ul class="list-unstyled">
  5. <li>
  6. <button type="button" class="btn btn-default tooltip-top btn-strong" title="{% trans "Bold" %}">
  7. <span class="fa fa-bold fa-fw"></span>
  8. </button>
  9. </li>
  10. <li>
  11. <button type="button" class="btn btn-default tooltip-top btn-emphasis" title="{% trans "Italic" %}">
  12. <span class="fa fa-italic fa-fw"></span>
  13. </button>
  14. </li>
  15. {% if editor.allow_links or editor.allow_links or editor.allow_links %}
  16. <li class="separator"></li>
  17. {% endif %}
  18. {% if editor.allow_links %}
  19. <li>
  20. <button type="button" class="btn btn-default tooltip-top btn-insert-link" title="{% trans "Insert link" %}">
  21. <span class="fa fa-link fa-fw"></span>
  22. </button>
  23. </li>
  24. {% endif %}
  25. {% if editor.allow_images %}
  26. <li>
  27. <button type="button" class="btn btn-default tooltip-top btn-insert-image" title="{% trans "Insert image" %}">
  28. <span class="fa fa-image fa-fw"></span>
  29. </button>
  30. </li>
  31. {% endif %}
  32. {% if editor.uploads_url %}
  33. <li>
  34. <button type="button" class="btn btn-default tooltip-top btn-upload-file" title="{% trans "Insert file" %}">
  35. <span class="fa fa-paperclip fa-fw"></span>
  36. </button>
  37. </li>
  38. {% endif %}
  39. {% if editor.allow_blocks %}
  40. <li class="separator"></li>
  41. <li>
  42. <button type="button" class="btn btn-default tooltip-top btn-insert-quote" title="{% trans "Quote" %}">
  43. <span class="fa fa-quote-left fa-fw"></span>
  44. </button>
  45. </li>
  46. <li>
  47. <button type="button" class="btn btn-default tooltip-top btn-insert-code" title="{% trans "Code" %}">
  48. <span class="fa fa-code fa-fw"></span>
  49. </button>
  50. </li>
  51. <li class="separator"></li>
  52. <li>
  53. <button type="button" class="btn btn-default tooltip-top btn-insert-hr" title="{% trans "Horizontal line" %}">
  54. <span class="fa fa-minus fa-fw"></span>
  55. </button>
  56. </li>
  57. {% endif %}
  58. {% if editor.has_preview %}
  59. <li class="pull-right">
  60. <button type="button" class="btn btn-default tooltip-top btn-insert-hr btn-preview" title="{% trans "Toggle preview" %}">
  61. <span class="fa fa-file-text-o fa-fw"></span>
  62. </button>
  63. </li>
  64. {% endif %}
  65. </ul>
  66. </div>
  67. <div class="editor-textarea">
  68. <textarea id="{{ editor.field.auto_id }}" name="{{ editor.field.html_name }}" class="scrollable" rows="6">{% if editor.field.value %}{{ editor.field.value }}{% endif %}</textarea>
  69. </div>
  70. <div class="editor-footer">
  71. </div>
  72. <input type="file" class="editor-upload">
  73. </div>