src/cm/templates/site/profile.html
author gibus
Thu, 10 Oct 2013 09:37:17 +0200
changeset 550 05b5e51e8823
parent 439 8994d24e4b2f
child 551 723261fb23fb
permissions -rw-r--r--
Put logo really everywhere.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
{% extends "site/layout/base_workspace.html" %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
{% load com %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
{% load i18n %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
{% block title %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
{% blocktrans with user.username as username %}Your profile ({{ username }}){% endblocktrans %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
{% endblock %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
{% block head %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
{% endblock %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
{% block content %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
550
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    14
<h1 class="main_title">
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    15
{% if CONF.f_get_logo_url %}
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    16
<div><a title="{% blocktrans %}back to workspace{% endblocktrans %}" alt="logo" class="title" href="{% url index %}"><img src="{{ CONF.f_get_logo_url }}" /></a></div>
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    17
{% else %}
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    18
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    19
{% if CONF.workspace_name %}
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    20
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a>
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    21
{% endif %}
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    22
{% endif %}
05b5e51e8823 Put logo really everywhere.
gibus
parents: 439
diff changeset
    23
</h1>
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    24
<h1>{% blocktrans with user.username as username %}Your profile ({{ username }}){% endblocktrans %}</h1>
225
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    25
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    26
<ul class="sub_list">
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    27
    <li class="active_sub">{% blocktrans %}Profile{% endblocktrans %}</li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    28
    <li> / </li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    29
    <li><a href="{% url profile-pw %}">{% blocktrans %}Password{% endblocktrans %}</a></li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    30
</ul>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents: 0
diff changeset
    31
439
8994d24e4b2f Reverts to changeset 435, and just add {% csrf_token %} to template forgot_pw.html, since CSRF protection seems to be only here (surely because of django.contrib.auth.views).
gibus
parents: 438
diff changeset
    32
<form id="profile" enctype="multipart/form-data" class="wizard-form" action="." method="post">
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    33
<table class="wide_form">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    34
    <tbody>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    35
        {% for form in forms %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    36
            {% include "site/macros/form_fields.html" %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    37
        {% endfor %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    38
    <tr>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    39
        <td style="vertical-align: top; width: 20%; text-align:right;">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    40
        </td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    41
        <td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    42
            <label></label>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    43
            <input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    44
        </td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    45
    </tr>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    46
    </tbody>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    47
</table>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    48
</form>
438
fcc5e2f0befd Fix side effects with csrf token, add csrf_token to every post form + add ajax (see http://stackoverflow.com/questions/5100539/django-csrf-check-failing-with-an-ajax-post-request), remove django.middleware.csrf.CsrfViewMiddleware ?!
Production Moz <dev@sopinspace.com>
parents: 225
diff changeset
    49
{% endblock %}