| author | gibus |
| Thu, 10 Oct 2013 09:37:17 +0200 | |
| changeset 550 | 05b5e51e8823 |
| parent 439 | 8994d24e4b2f |
| child 551 | 723261fb23fb |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load com %} |
|
3 |
{% load i18n %} |
|
4 |
||
5 |
{% block title %} |
|
6 |
{% blocktrans with user.username as username %}Your profile ({{ username }}){% endblocktrans %} |
|
7 |
{% endblock %} |
|
8 |
||
9 |
{% block head %} |
|
10 |
{% endblock %} |
|
11 |
||
12 |
{% block content %} |
|
13 |
||
| 550 | 14 |
<h1 class="main_title"> |
15 |
{% if CONF.f_get_logo_url %} |
|
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> |
|
17 |
{% else %} |
|
18 |
||
19 |
{% if CONF.workspace_name %} |
|
20 |
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a> |
|
21 |
{% endif %} |
|
22 |
{% endif %} |
|
23 |
</h1> |
|
| 0 | 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 | 33 |
<table class="wide_form"> |
34 |
<tbody> |
|
35 |
{% for form in forms %} |
|
36 |
{% include "site/macros/form_fields.html" %} |
|
37 |
{% endfor %} |
|
38 |
<tr> |
|
39 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
40 |
</td> |
|
41 |
<td> |
|
42 |
<label></label> |
|
43 |
<input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
44 |
</td> |
|
45 |
</tr> |
|
46 |
</tbody> |
|
47 |
</table> |
|
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 %} |