src/cm/templates/site/profile_pw.html
author gibus
Thu, 10 Oct 2013 11:16:05 +0200
changeset 551 723261fb23fb
parent 550 05b5e51e8823
permissions -rw-r--r--
Put also workspace name in any case.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
225
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     1
{% extends "site/layout/base_workspace.html" %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     2
{% load com %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     3
{% load i18n %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     4
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     5
{% block title %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     6
{% blocktrans with user.username as username %}Your profile ({{ username }}){% endblocktrans %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     7
{% endblock %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     8
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
     9
{% block head %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    10
{% endblock %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    11
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    12
{% block content %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
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>
551
723261fb23fb Put also workspace name in any case.
gibus
parents: 550
diff changeset
    17
{% endif %}
550
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
</h1>
225
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    23
<h1>{% blocktrans with user.username as username %}Your profile ({{ username }}){% endblocktrans %}</h1>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    24
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    25
<ul class="sub_list">
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    26
    <li><a href="{% url profile %}">{% blocktrans %}Profile{% endblocktrans %}</a></li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    27
    <li> / </li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    28
    <li class="active_sub">{% blocktrans %}Password{% endblocktrans %}</li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    29
</ul>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    30
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: 437
diff changeset
    31
<form id="profile" enctype="multipart/form-data" class="wizard-form" action="." method="post">
225
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    32
<table class="wide_form">
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    33
    <tbody>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    34
        {% for form in forms %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    35
            {% include "site/macros/form_fields.html" %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    36
        {% endfor %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    37
    <tr>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    38
        <td style="vertical-align: top; width: 20%; text-align:right;">
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    39
        </td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    40
        <td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    41
            <label></label>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    42
            <input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    43
        </td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    44
    </tr>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    45
    </tbody>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    46
</table>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    47
</form>
437
dec07877fd39 Avoids HTTP 403 on login and reset/change password, seehttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf.
Production Moz <dev@sopinspace.com>
parents: 225
diff changeset
    48
{% endblock %}