]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_edit.html
Fix in the retag template.
[osqa.git] / forum / skins / default / templates / question_edit.html
index f30ee9693cd7726ca874ed7fc3156abb3c95df3d..4ee8060be967649b79f32a0e11165f7a78e2f81a 100644 (file)
@@ -26,7 +26,7 @@
             });
             
             //Tags autocomplete action
-               $("#id_tags").autocomplete("/matching_tags/", {
+               $("#id_tags").autocomplete("{% url matching_tags %}", {
                        matchContains: true,
                 max: 20,
                 multiple: true,
         
 {% block content %}
 <div id="main-bar" class="headNormal">
-    {% trans "Edit question" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
+    {% block edittype %}{% trans "Edit question" %}{% endblock %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
 </div>
 <div id="main-body" class="ask-body">
     <div id="askform">
-        <form id="fmedit" action="{% url edit_question question.id %}" method="post" >
+        <form id="fmedit" action="" method="post">
+            {% csrf_token %}
             <label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/> 
             {% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
             <div style="vertical-align:middle">
                 {{ form.summary.help_text }}
             </div>
             
-            {% if form.captcha %}
+            {% if form.recaptcha %}
             <div class="question-captcha" style="float: left">
-               {{ form.captcha.errors }}
-               {{ form.captcha }}
+               {{ form.recaptcha.errors }}
+               {{ form.recaptcha }}
             </div>
             <div class="clear"></div>
             {% endif %}