summaryrefslogtreecommitdiffstats
path: root/askbot/templates/feedback.html
blob: 04b9a5b440796bc3b1d1f22547d672fd07b9ced0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "two_column_body.html" %}
<!-- template feedback.html -->
{% block title %}{% spaceless %}{% trans %}Feedback{% endtrans %}{% endspaceless %}{% endblock %}
{% block content %}
<h1 class="section-title">{% trans %}Give us your feedback!{% endtrans %}</h1>
{% if form.errors %}
<span class="error">
  {{form.errors.__all__}}
</span>
{%endif%}
<form method="post" action="{% url feedback %}" accept-charset="utf-8">{% csrf_token %}
    {% if user.is_authenticated() %}
        <p class="message">
        {% trans user_name=user.username|escape %}
        <span class='big strong'>Dear {{user_name}}</span>, we look forward to hearing your feedback. 
        Please type and send us your message below.
        {% endtrans %}
        <p>
    {% else %}
        <p class="message">
        {% trans %}
        <span class='big strong'>Dear visitor</span>, we look forward to hearing your feedback.
        Please type and send us your message below.
        {% endtrans %}
        </p>
        <div class="form-row"><label>{{form.name.label}}</label><br/>{{form.name}}</div>
        <div class="form-row">
            <label>{{form.email.label}} 
                {% if form.errors.email %}
                    <span class='error'>{% trans %}(to hear from us please enter a valid email or check the box below){% endtrans %}</span>
                {% endif %}
            </label><br/>{{form.email}}
        </div>
        <div class="form-row">
        <label>{{form.no_email.label}}
        {% if form.errors.no_email %}
        <span class="error">{% trans %}(this field is required){% endtrans %}</span>
        {% endif %}
        {{form.no_email}}
        </label>
        </div>
    {% endif %}
    <div class="form-row">
        <label>{{form.message.label}}
        {% if form.errors.message %}
        <span class="error">{% trans %}(this field is required){% endtrans %}</span>
        </label>
        {% endif %}
        <br/>
        {{form.message}}
    </div>
    {% if form.recaptcha %}
    <div class="form-row">
        {% if form.errors.recaptcha%}
        <span class="error">{% trans %}(Please solve the captcha){% endtrans %}</span>
        </label>
        {% endif %}
      {{form.recaptcha}}
    </div>
    {% endif %}
    {{form.next}}
    <div class="submit-row">
        <input type="submit" class="submit" value="{% trans %}Send Feedback{% endtrans %}"/>&nbsp;
        <input type="submit" class="submit cancel" name="cancel" value="{% trans %}Cancel{% endtrans %}"/>
    </div>
</form>
{% endblock %}
<!-- end template feedback.html -->