]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/feedback.html
OSQA-829, resolves a unicode problem when answering question, use smart_unicode for...
[osqa.git] / forum / skins / default / templates / feedback.html
index 38bb48ff927fdaf07b46176fb562449c8fce2522..690e9439a73307315470d24b7250202149937922 100644 (file)
@@ -12,6 +12,7 @@
 </div>
 <div class="content">
     <form method="post" action="{% url feedback %}" accept-charset="utf-8">
+        {% csrf_token %}
         {% if user.is_authenticated %}
             <p class="message">
             {% blocktrans with user.username as user_name %}
             Please type and send us your message below.
             {% endblocktrans %}
             </p>
-            <div class="form-row"><label>{{form.name.label}}</label><br/>{{form.name}}</div>
+            <div class="form-row"><label for="id_name">{{form.name.label}}</label><br/>{{form.name}}</div>
             <div class="form-row">
-                <label>{{form.email.label}} 
+                <label for="id_email">{{form.email.label}}
                     {% if form.errors.email %}
-                        <span class='red'>(please enter a valid email)</span>
+                        <strong>(please enter a valid email)</strong>
                     {% endif %}
                 </label><br/>{{form.email}}
             </div>
         {% endif %}
         <div class="form-row">
-            <label>{{form.message.label}}
+            <label for="id_message">{{form.message.label}}
             {% if form.errors.message %}
-            <span class="red">{% trans "(this field is required)" %}</span>
-            </label>
+            <strong>{% trans "(this field is required)" %}</strong>
             {% endif %}
+            </label>
             <br/>
             {{form.message}}
         </div>
+
+        {% if form.recaptcha %}
+        <div class="form-row">
+            <label for="recaptcha_response_field">Are you a human?
+            {% if form.errors.recaptcha %}
+            <strong>{% trans "(wrong captcha)" %}</strong>
+            {% endif %}
+            </label>
+            <br/>
+            <div style="float: left;">
+            {{ form.recaptcha }}
+            </div>
+            <div class="clear"></div>
+        </div>
+        {% endif %}
+
         {{form.next}}
         <div class="submit-row">
             <input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>