src/cm/templates/site/profile_pw.html
author Simon Descarpentries <sid@sopinspace.com>
Mon, 21 Oct 2013 16:37:07 +0200
changeset 553 bf26fb47a14c
parent 439 8994d24e4b2f
child 550 05b5e51e8823
permissions -rw-r--r--
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout. So the automated scrolling operations in c_sync.js must be adjustable to the right part to scroll. Also, if a comment have to be shown outside of the current viewport, we scroll the correct part to that viewport and then set the comment top Y offset to juste what it needs to avoid the "Add comment" button after scrolling operation. If not in Safari mobile, we add an offset here to avoid comment to display under the "Add comment" button.
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
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    14
<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
    15
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    16
<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
    17
    <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
    18
    <li> / </li>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    19
    <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
    20
</ul>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    21
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
    22
<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
    23
<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
    24
    <tbody>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    25
        {% 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
    26
            {% 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
    27
        {% endfor %}
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    28
    <tr>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    29
        <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
    30
        </td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    31
        <td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    32
            <label></label>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    33
            <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
    34
        </td>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    35
    </tr>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    36
    </tbody>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    37
</table>
67e1a89d6bca refactor forgot pw function to use django methods / add password change page in profile / i18n update
raph
parents:
diff changeset
    38
</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
    39
{% endblock %}