~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/wlprofile/edit_profile.html

  • Committer: franku
  • Date: 2016-05-15 14:41:54 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160515144154-00m3tiibyxm0nw2w
added the old threadedcomments app as wildelands app

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
{% load i18n %}
4
4
 
 
5
{% block title %}
 
6
{% trans "Profile Editing" %} - {{ block.super }}
 
7
{% endblock %}
 
8
 
5
9
{% block content %}
6
 
{% ifequal user profile.user %}
7
 
        {% include "django_messages/inlines/navigation.html" %}
8
 
{% endifequal %}
9
 
<br />
10
 
<br />
11
 
<div class="box_item_model fixed_site border">
12
 
    <h3 class="title">{% trans "Profile editing" %}</h3>
13
 
    <div class="content">
14
 
    {% if profile.avatar %}
15
 
        <img src="{{ profile.avatar.url }}" />
16
 
    {% endif %}
17
 
 
18
 
        <form method="post" enctype="multipart/form-data">
19
 
            <table width="100%" cellspacing="1" class="text">
20
 
            {# FIXME: change the right color #}
21
 
    {% if profile_form.errors %}
22
 
                <tr>
23
 
                    <td class="even" colspan="2">{{ profile_form.errors }}</td>
24
 
                </tr>
25
 
    {% endif %}
26
 
 
27
 
    {% for field in profile_form %}
28
 
        {% if field.errors %}
29
 
                <tr>
30
 
                    <td colspan="2" class="{% cycle "odd" "even" %}">
31
 
                        <div class="errormessage">{{ field.errors }}</div>
32
 
                    </td>
33
 
                </tr>
34
 
        {% endif %}
35
 
        {% ifequal field.name "delete_avatar" %}
36
 
            {% if profile.avatar %}
37
 
                <tr>
38
 
                    <td class="{% cycle "odd" "even" %}">{{ field.label_tag }}:</td>
39
 
                    <td class="{% cycle "odd" "even" %}">{{ field }}
40
 
                </tr>
41
 
            {% endif %}
42
 
        {% else %}
43
 
                <tr>
44
 
                    <td class="{% cycle "odd" "even" %} {%ifequal field.name "signature" %}show_left{% endifequal %}">{{ field.label_tag }}:</td>
45
 
                    <td class="{% cycle "odd" "even" %}">{{ field }}
46
 
                {% ifequal field.name "time_display" %}
47
 
                        <a href="/wiki/HomepageDocuTimeDisplay">Documented here</a>
48
 
                {% endifequal %}
49
 
                    </td>
50
 
                </tr>
51
 
        {% endifequal %}
52
 
    {% endfor %}
53
 
            </table>
54
 
        </div>
55
 
        <div class="info_line">
56
 
            <input type="submit" value="{% trans "Save" %}" />
57
 
        </div>
58
 
        {% csrf_token %}
59
 
    </form>
60
 
</div>
61
 
<br />
62
 
<div class="box_item_model fixed_site border">
63
 
    <div class="info_line show_left">
64
 
        <a href="{% url auth_change_password %}">Change website password</a>
65
 
        <br />
66
 
        <br />
67
 
        You will be redirected to an encrypted connections. Passwords are <b>not</b> transmitted in cleartext.
68
 
    </div>
69
 
</div>
70
 
<br />
71
 
<div class="box_item_model fixed_site border">
72
 
    <div class="info_line show_left">
73
 
        <a href="{% url wlggz_changepw %}">Change online lobby password</a>
74
 
        <br />
75
 
        <br />
76
 
        <b class="errormessage">WARNING: GGZ transmitts the password in cleartext. Choose a different password for online gaming.</b>
77
 
    </div>
 
10
<h1>{% trans "Profile Editing" %}</h1>
 
11
 
 
12
<div class="blogEntry">
 
13
        <form method="post" enctype="multipart/form-data" action=".">
 
14
                <table>
 
15
                {% for field in profile_form %}
 
16
                        <tr>
 
17
                                <td class="grey">
 
18
                                        {{ field.label_tag }}:
 
19
                                </td>
 
20
                                <td>
 
21
                                        {% ifequal field.name "avatar"%}
 
22
                                        {% if profile.avatar %}
 
23
                                                <img class="posLeft" src="{{ profile.avatar.url }}" alt="Avatar" />
 
24
                                        {% endif %}
 
25
                                        {% endifequal %}
 
26
 
 
27
                                        {{ field }}
 
28
 
 
29
                                        {% ifequal field.name "time_display" %}
 
30
                                                <a href="/wiki/HomepageDocuTimeDisplay">Documented here</a>
 
31
                                        {% endifequal %}
 
32
                                </td>
 
33
                                <td class="errormessage">
 
34
                                {% if field.errors %}
 
35
                                        {{ field.errors }}
 
36
                                {% endif %}
 
37
                                </td>
 
38
                        </tr>
 
39
                {% endfor %}
 
40
                </table>
 
41
                <input type="submit" value="{% trans "Save" %}" />
 
42
                {% csrf_token %}
 
43
        </form>
 
44
        <br />
 
45
        <br />
 
46
        <p>
 
47
                <a href="{% url 'auth_password_change' %}">Change website password</a>
 
48
                <br />
 
49
                You will be redirected to an encrypted connection. The website password is <strong>not</strong> transmitted in cleartext.
 
50
        </p>
 
51
        <p>
 
52
                <a href="{% url 'wlggz_changepw' %}">Change online gaming password</a>
 
53
                <br />
 
54
                <strong class="errormessage">WARNING: The online gaming password is transmitted in cleartext. Do not use your website password!</strong>
 
55
        </p>
78
56
</div>
79
57
{% endblock %}