BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reply.twig 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% from 'macro/form.twig' import checked %}
  2. <br />
  3. <div id="reply_box">
  4. {% if user.disablePosting %}
  5. <h4>Your posting privileges have been removed</h3>
  6. {% else %}
  7. <h3>{% if forum %}Post reply{% else %}Post comment{% endif %}</h3>
  8. <div class="box pad">
  9. <table class="forum_post box vertical_margin hidden preview_wrap" id="{{ textarea.previewId }}">
  10. <colgroup>
  11. {% if user.showAvatars %}
  12. <col class="col_avatar" />
  13. {% endif %}
  14. <col class="col_post_body" />
  15. </colgroup>
  16. <tr class="colhead_dark">
  17. <td{% if user.showAvatars %} colspan="2"{% endif %}>
  18. <div style="float: left;"><a href="#quickreplypreview">#------</a> by <strong>{{ user.id|user_full }}</strong> Just now
  19. </div>
  20. <div style="float: right;">
  21. <a href="#quickreplypreview" class="brackets">Report</a>
  22. &nbsp;
  23. <a href="#">&uarr;</a>
  24. </div>
  25. </td>
  26. </tr>
  27. <tr>
  28. {% if user.showAvatars %}
  29. <td class="avatar" valign="top">
  30. {{ avatar|raw }}
  31. </td>
  32. {% endif %}
  33. <td class="body" valign="top">
  34. {{ textarea.preview|raw }}
  35. </td>
  36. </tr>
  37. </table>
  38. <form class="send_form center" name="reply" id="quickpostform" action="{{ url }}" method="post"{% if not admin %} onsubmit="quickpostform.submit_button.disabled = true;"{% endif %}>
  39. <input type="hidden" name="action" value="{{ action }}" />
  40. <input type="hidden" name="auth" value="{{ auth }}" />
  41. <input type="hidden" name="{{ name }}" value="{{ id }}" />
  42. <div id="quickreplytext">
  43. {{ textarea.field|raw }}
  44. <br />
  45. </div>
  46. <div class="preview_submit">
  47. {% if not subbed %}
  48. <input id="subscribebox" type="checkbox" name="subscribe" tabindex="2"{{ checked(user.option('AutoSubscribe')) }} />
  49. <label for="subscribebox">Subscribe</label>
  50. {% endif %}
  51. {% if merge %}
  52. <input id="mergebox" type="checkbox" name="merge" tabindex="2" {{ checked(merge) }} />
  53. <label for="mergebox">Merge</label>
  54. {% if not user.option('DisableAutoSave') %}
  55. <script type="application/javascript">
  56. var storedTempTextarea = new StoreText('quickpost', 'quickpostform', {{ id }});
  57. </script>
  58. {% endif %}
  59. {% endif %}
  60. {{ textarea.button|raw }}
  61. <input type="submit" value="Post reply" id="submit_button" tabindex="1" />
  62. </div>
  63. </form>
  64. </div>
  65. {% endif %}
  66. </div>