blob: d5e8b3a762368092748b61d1be679130ae9205b4 (
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
|
{% extends "two_column_body.html" %}
<!-- template feedback.html -->
{% block title %}{% spaceless %}{% trans %}Feedback{% endtrans %}{% endspaceless %}{% endblock %}
{% block content %}
<h1>{% trans %}Give us your feedback!{% endtrans %}</h1>
<form method="post" action="{% url feedback %}" accept-charset="utf-8">{% csrf_token %}
{% if user.is_authenticated() %}
<p class="message">
{% trans user_name=user.username %}
<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 %}(please enter a valid email){% endtrans %}</span>
{% endif %}
</label><br/>{{form.email}}
</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>
{{form.next}}
<div class="submit-row">
<input type="submit" class="submit" value="{% trans %}Send Feedback{% endtrans %}"/>
<input type="submit" class="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}"/>
</div>
</form>
{% endblock %}
<!-- end template feedback.html -->
|