]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/feedback.html
resolves an issue with the vertical alignment of the text in the form buttons
[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>{{form.name.label}}</label><br/>{{form.name}}</div>
31             <div class="form-row">
32                 <label>{{form.email.label}} 
33                     {% if form.errors.email %}
34                         <span class='red'>(please enter a valid email)</span>
35                     {% endif %}
36                 </label><br/>{{form.email}}
37             </div>
38         {% endif %}
39         <div class="form-row">
40             <label>{{form.message.label}}
41             {% if form.errors.message %}
42             <span class="red">{% trans "(this field is required)" %}</span>
43             </label>
44             {% endif %}
45             <br/>
46             {{form.message}}
47         </div>
48         {{form.next}}
49         <div class="submit-row">
50             <input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>
51             <input type="submit" class="submit" name="cancel" value="{% trans "Cancel" %}"/>
52         </div>
53     </form>
54 </div>
55 {% endblock %}
56 <!-- end template about.html -->