~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/django_messages/compose.html

  • Committer: Holger Rapp
  • Date: 2012-03-17 16:22:06 UTC
  • Revision ID: sirver@gmx.de-20120317162206-fgttamk22qt1nytj
Let post count be calculated automatically instead of keeping track of it manually. Let's see how this affects performance

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
Compose - {{ block.super }}
6
6
{% endblock %}
7
7
 
8
 
{% block msg_title %}Compose{% endblock %}
9
 
 
10
 
{% block msg_content %}
11
 
<form action="." method="post">
12
 
        <table class="messages">
13
 
                {% for field in form %}
14
 
                <tr>
15
 
                        <td class="grey">{{ field.label_tag }}:</td>
16
 
                        <td>{{ field }}</td>
17
 
                        <td class="errormessage">{{ field.errors }}</td>
18
 
                </tr>
19
 
                {% endfor %}
20
 
        </table>
21
 
        <input type="submit" value="{% trans "Send" %}"/>
22
 
        {% csrf_token %}
23
 
</form>
 
8
 
 
9
{% block content %} 
 
10
{% include "django_messages/inlines/navigation.html" %}
 
11
<br />
 
12
<br />
 
13
<div class="box_item_model fixed_site border">
 
14
        <h3 class="title">{% trans "Compose Message"%}</h3>
 
15
    <form action="" method="post">
 
16
        <div class="content">
 
17
            <table class="text full_site" cellspacing="1">
 
18
                {% for field in form %}
 
19
                <tr>
 
20
                    <td width="80" class="{% cycle "odd" "even" %}{% ifequal field.name "body" %} show_left{% endifequal %}">{{ field.label_tag }}:</td>
 
21
                    <td class="{% cycle "odd" "even" %}">{{ field }}</td>
 
22
                </tr>
 
23
                {% endfor %}
 
24
            </table>
 
25
        </div>
 
26
        <div class="info_line show_center">
 
27
            <input type="submit" value="{% trans "Send" %} &raquo;"/>
 
28
        </div>
 
29
        {% csrf_token %}
 
30
    </form>
 
31
</div>
 
32
 
24
33
{% endblock %}