]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/node/comments.html
OSQA-719, implements a new feature that allows administrators and moderators to manag...
[osqa.git] / forum / skins / default / templates / node / comments.html
index 25f04b699fa56db900527e939cced436f222c63b..f67e079e93512639c901f6dfae3be1379b8cebc5 100644 (file)
@@ -52,7 +52,7 @@
     <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}" accept-charset="utf-8">\r
         {% csrf_token %}\r
         <div class="comment-form-widgets-container">\r
-            <textarea name="comment" class="commentBox"></textarea>\r
+            <textarea name="comment" class="commentBox" id="comment"></textarea>\r
             <div class="comment-form-buttons">\r
                 <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">\r
                     <span class="comments-char-left-count">{{ min_length }}|{{ max_length }}</span>\r
                 <input type="submit" class="comment-submit" value="{% trans " comment" %}" />\r
                 <input type="submit" class="comment-cancel" value="{% trans " cancel" %}" />\r
             </div>\r
+            <div class="clear"></div>\r
+            {% if user.can_use_canned_comments %}\r
+            <div class="canned_comment">\r
+                <a href="{% url canned_comments post.id %}" class="ajax-command withprompt">{% trans "Use canned comment" %}</a>\r
+            </div>\r
+            {% endif %}\r
         </div>\r
         <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">\r
             <div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-%ID%">\r