~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/django_messages/compose.html

  • Committer: Holger Rapp
  • Date: 2009-02-19 15:31:42 UTC
  • Revision ID: sirver@h566336-20090219153142-dc8xuabldnw5t395
Initial commit of new widelands homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "django_messages/base.html" %} 
2
 
{% load i18n %}
3
 
{% load wl_extras %}
4
 
 
5
 
{% block title %}
6
 
Compose - {{ block.super }}
7
 
{% endblock %}
8
 
 
9
 
{% block extra_head %}
10
 
<script>
11
 
        $(function() {
12
 
        $( "#id_recipient" ).autocomplete({
13
 
                source: '/messages/django_messages_wl/get_usernames/',
14
 
                minLength: 3,
15
 
                });
16
 
});
17
 
</script>
18
 
{{ block.super}}{% endblock %}
19
 
 
20
 
{% block msg_title %}Compose{% endblock %}
21
 
 
22
 
{% block msg_content %}
23
 
<form action="." method="post">
24
 
        <table class="messages">
25
 
                {% for field in form %}
26
 
                <tr>
27
 
                        <td class="grey">{{ field.label_tag }}</td>
28
 
                        <td>{{ field }}</td>
29
 
                        <td class="errormessage">{{ field.errors }}</td>
30
 
                </tr>
31
 
                {% endfor %}
32
 
        </table>
33
 
        <input type="submit" value="{% trans "Send" %}"/>
34
 
        {% csrf_token %}
35
 
</form>
36
 
{% endblock %}