~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/wlggz/edit_ggz.html

  • Committer: timo
  • Date: 2010-06-03 14:21:21 UTC
  • mto: This revision was merged to the branch mainline in revision 218.
  • Revision ID: timo@athin-20100603142121-65pr9u44g3lsmxoi
add first version of wlggz app

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "wlggz/base.html" %}
 
2
 
 
3
{% load i18n %}
 
4
 
 
5
{% block content %}
 
6
{% ifequal user profile.user %}
 
7
        {% include "django_messages/inlines/navigation.html" %}
 
8
{% endifequal %}
 
9
<br />
 
10
<br />
 
11
<div class="profile_item">
 
12
    <h3 class="title">{% trans "Set GGZ password" %}</h3>
 
13
    <div class="content">
 
14
 
 
15
        <form method="post" enctype="multipart/form-data">
 
16
            <table width="100%" cellspacing="1" class="text">
 
17
            {# FIXME: change the right color #}
 
18
    {% if profile_form.errors %}
 
19
                <tr>
 
20
                    <td class="even" colspan="2">{{ profile_form.errors }}</td>
 
21
                </tr>
 
22
    {% endif %}
 
23
 
 
24
    {% for field in ggz_form %}
 
25
                <tr>
 
26
            {% if field.errors %}
 
27
                    <td colspan="2" class="{% cycle "odd" "even" %}">
 
28
                        <div class="errormessage">{{ field.errors }}</div>
 
29
                    </td>
 
30
                </tr>
 
31
                <tr>
 
32
            {% endif %}
 
33
                    <td {% ifequal field.name "signature" %} valign="top" {% endifequal %}class="{% cycle "odd" "even" %}">{{ field.label_tag }}:</td>
 
34
                    <td class="{% cycle "odd" "even" %}">{{ field }}                 
 
35
                {% ifequal field.name "time_display" %}
 
36
                        <a href="/wiki/HomepageDocuTimeDisplay">Documented here</a>
 
37
                {% endifequal %}
 
38
                    </td>
 
39
                </tr>
 
40
    {% endfor %}
 
41
            </table>
 
42
    </div>
 
43
    <table class="bottom_line" width="100%">
 
44
        <tr>
 
45
            <td><input type="submit" value="{% trans "Save" %}" /></td>
 
46
        </tr>
 
47
    </table>
 
48
    </form>
 
49
</div>
 
50
{% endblock %}