]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/answer_edit.html
Added french locales
[osqa.git] / forum / skins / default / templates / answer_edit.html
index c0315e6df03b9332c2ccd4b814009d1fbdd9a7b4..3201dd26de651966b3c59b537a3f3a33f5ab650f 100644 (file)
@@ -6,6 +6,7 @@
 {% block forejs %}
         <script type='text/javascript' src='{% media  "/media/js/wmd/showdown.js" %}'></script>
         <script type='text/javascript' src='{% media  "/media/js/wmd/wmd.js" %}'></script>
+        <script type='text/javascript' src='{% media  "/media/js/html_sanitizer.js" %}'></script>
         <link rel="stylesheet" type="text/css" href="{% media  "/media/js/wmd/wmd.css" %}" />
         <script type="text/javascript">
         
@@ -63,7 +64,8 @@
 </div>
 <div id="main-body" class="ask-body">
     <div id="askform">
-        <form id="fmedit" action="{% url edit_answer answer.id %}" method="post" >
+        <form id="fmedit" action="{% url edit_answer answer.id %}" 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>
                 {{ form.summary.help_text }}
             </div>
             
-            {% if form.captcha %}
+            {% if form.recaptcha %}
             <div class="question-captcha">
-               {{ form.captcha.errors }}
-               {{ form.captcha }}
+               {{ form.recaptcha.errors }}
+               {{ form.recaptcha }}
             </div>
             {% endif %}