~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlprofile/edit_profile.html

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "wlprofile/base.html" %}
2
 
 
3
 
{% load i18n %}
4
 
 
5
 
{% block title %}
6
 
{% trans "Profile Editing" %} - {{ block.super }}
7
 
{% endblock %}
8
 
 
9
 
{% block edit_profile %}class="active"{% endblock %}
10
 
 
11
 
{% block content_header %}
12
 
        <h1>{% trans "Profile Editing" %}</h1>
13
 
{% endblock %}
14
 
 
15
 
{% block content_main %}
16
 
<div class="blogEntry">
17
 
        <form method="post" enctype="multipart/form-data" action=".">
18
 
                <table>
19
 
                {% for field in profile_form %}
20
 
                        <tr>
21
 
                                <td class="grey">
22
 
                                        {{ field.label_tag }}
23
 
                                </td>
24
 
                                <td>
25
 
                                        {% ifequal field.name "avatar"%}
26
 
                                        {% if profile.avatar %}
27
 
                                                <img class="posLeft" src="{{ profile.avatar.url }}" alt="Avatar" />
28
 
                                        {% endif %}
29
 
                                        {% endifequal %}
30
 
 
31
 
                                        {{ field }}
32
 
 
33
 
                                        {% ifequal field.name "time_display" %}
34
 
                                                <a href="/wiki/HomepageDocuTimeDisplay">Documented here</a>
35
 
                                        {% endifequal %}
36
 
                                </td>
37
 
                                <td class="errormessage">
38
 
                                {% if field.errors %}
39
 
                                        {{ field.errors }}
40
 
                                {% endif %}
41
 
                                </td>
42
 
                        </tr>
43
 
                {% endfor %}
44
 
                </table>
45
 
                <input type="submit" value="{% trans "Save" %}" />
46
 
                {% csrf_token %}
47
 
        </form>
48
 
 
49
 
        <h2>Other options:</h2>
50
 
        <ul>
51
 
                <li><a href="{% url 'auth_password_change' %}">Change website password</a></li>
52
 
                <li><a href="{% url 'wlggz_changepw' %}">Change online gaming password</a></li>
53
 
                <li><a href="{% url 'delete_me' %}">Delete me</a></li>
54
 
        </ul>
55
 
</div>
56
 
{% endblock %}