]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/feedback.html
Merge pull request #26 from udacity/remove_dj_version
[osqa.git] / forum / skins / default / templates / feedback.html
1 {% extends "base_content.html" %}
2 <!-- template about.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 {% load humanize %}
6 {% block title %}{% spaceless %}{% trans "Feedback" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
8 {% endblock %}
9 {% block content %}
10 <div class="headNormal">
11 {% trans "Give us your feedback!" %}
12 </div>
13 <div class="content">
14     <form method="post" action="{% url "feedback" %}" accept-charset="utf-8">
15         {% csrf_token %}
16         {% if user.is_authenticated %}
17             <p class="message">
18             {% blocktrans with user.username as user_name %}
19             <span class='big strong'>Dear {{user_name}}</span>, we look forward to hearing your feedback. 
20             Please type and send us your message below.
21             {% endblocktrans %}
22             <p>
23         {% else %}
24             <p class="message">
25             {% blocktrans %}
26             <span class='big strong'>Dear visitor</span>, we look forward to hearing your feedback.
27             Please type and send us your message below.
28             {% endblocktrans %}
29             </p>
30             <div class="form-row"><label for="id_name">{{form.name.label}}</label><br/>{{form.name}}</div>
31             <div class="form-row">
32                 <label for="id_email">{{form.email.label}}
33                     {% if form.errors.email %}
34                         <strong>(please enter a valid email)</strong>
35                     {% endif %}
36                 </label><br/>{{form.email}}
37             </div>
38         {% endif %}
39         <div class="form-row">
40             <label for="id_message">{{form.message.label}}
41             {% if form.errors.message %}
42             <strong>{% trans "(this field is required)" %}</strong>
43             {% endif %}
44             </label>
45             <br/>
46             {{form.message}}
47         </div>
48
49         {% if form.recaptcha %}
50         <div class="form-row">
51             <label for="recaptcha_response_field">Are you a human?
52             {% if form.errors.recaptcha %}
53             <strong>{% trans "(wrong captcha)" %}</strong>
54             {% endif %}
55             </label>
56             <br/>
57             <div style="float: left;">
58             {{ form.recaptcha }}
59             </div>
60             <div class="clear"></div>
61         </div>
62         {% endif %}
63
64         {{form.next}}
65         <div class="submit-row">
66             <input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>
67             <input type="submit" class="submit" name="cancel" value="{% trans "Cancel" %}"/>
68         </div>
69     </form>
70 </div>
71 {% endblock %}
72 <!-- end template about.html -->