replyform.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% load i18n misago_editor misago_forms misago_shorthands %}
  2. {% include 'misago/form_errors.html' %}
  3. {% for form in supporting_forms.reply_top %}
  4. {% include form.template %}
  5. {% endfor %}
  6. {% if form.title %}
  7. <div class="thread-title">
  8. <div class="row">
  9. <div class="col-md-{{ supporting_forms.after_title|yesno:"9,12" }}">
  10. <input class="textinput textInput form-control title-input" id="{{ form.title.auto_id }}" name="{{ form.title.html_name }}" type="text" {% if form.title.value %}value="{{ form.title.value }}"{% endif %} placeholder="{% trans "Thread title..." %}">
  11. </div>
  12. {% if supporting_forms.after_title %}
  13. <div class="col-md-3">
  14. {% for form in supporting_forms.after_title %}
  15. {% include form.template %}
  16. {% endfor %}
  17. </div>
  18. {% endif %}
  19. </div>
  20. </div>
  21. {% endif %}
  22. <div class="row">
  23. <div class="col-md-6 col-editor">
  24. {% editor_body form.post_editor %}
  25. </div>
  26. <div class="col-md-6 col-preview">
  27. <div class="editor-preview">
  28. <div class="frame scrollable">
  29. <p class="lead empty-message">
  30. {% trans "Once you start writing mesage, it's preview will be displayed here." %}
  31. </p>
  32. <article class="misago-markup">{{ post.is_valid|iftrue:post.parsed|safe }}</article>
  33. </div>
  34. <p class="preview-footer text-muted small">
  35. <span class="fa fa-refresh fa-fw"></span>
  36. {% trans "Preview updates automatically when you pause typing." %}
  37. </p>
  38. </div>
  39. </div>
  40. </div>