summaryrefslogtreecommitdiffstats
path: root/forum/skins/default/templates/feedback.html
blob: 38bb48ff927fdaf07b46176fb562449c8fce2522 (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
{% extends "base_content.html" %}
<!-- template about.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Feedback" %}{% endspaceless %}{% endblock %}
{% block forejs %}
{% endblock %}
{% block content %}
<div class="headNormal">
{% trans "Give us your feedback!" %}
</div>
<div class="content">
    <form method="post" action="{% url feedback %}" accept-charset="utf-8">
        {% if user.is_authenticated %}
            <p class="message">
            {% blocktrans with user.username as user_name %}
            <span class='big strong'>Dear {{user_name}}</span>, we look forward to hearing your feedback. 
            Please type and send us your message below.
            {% endblocktrans %}
            <p>
        {% else %}
            <p class="message">
            {% blocktrans %}
            <span class='big strong'>Dear visitor</span>, we look forward to hearing your feedback.
            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>{{form.email.label}} 
                    {% if form.errors.email %}
                        <span class='red'>(please enter a valid email)</span>
                    {% endif %}
                </label><br/>{{form.email}}
            </div>
        {% endif %}
        <div class="form-row">
            <label>{{form.message.label}}
            {% if form.errors.message %}
            <span class="red">{% trans "(this field is required)" %}</span>
            </label>
            {% endif %}
            <br/>
            {{form.message}}
        </div>
        {{form.next}}
        <div class="submit-row">
            <input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>
            <input type="submit" class="submit" name="cancel" value="{% trans "Cancel" %}"/>
        </div>
    </form>
</div>
{% endblock %}
<!-- end template about.html -->