| author | gibus |
| Mon, 21 May 2012 16:50:42 +0200 | |
| changeset 439 | 8994d24e4b2f |
| parent 438 | fcc5e2f0befd |
| child 550 | 05b5e51e8823 |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load com %} |
|
3 |
{% load i18n %} |
|
4 |
||
5 |
{% block head %} |
|
6 |
{% endblock %} |
|
7 |
||
8 |
{% block content %} |
|
9 |
||
10 |
<h1>{% blocktrans %}Activate your account{% endblocktrans %}</h1> |
|
|
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
|
11 |
<form id="user_add" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 12 |
<table class="wide_form"> |
13 |
<tbody> |
|
14 |
{% with userform as form %} |
|
15 |
{% include "site/macros/form_fields.html" %} |
|
16 |
{% endwith %} |
|
17 |
||
18 |
{% with pwform as form %} |
|
19 |
{% include "site/macros/form_fields.html" %} |
|
20 |
{% endwith %} |
|
21 |
||
22 |
<tr> |
|
23 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
24 |
</td> |
|
25 |
<td> |
|
26 |
<label></label> |
|
27 |
<input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
28 |
</td> |
|
29 |
</tr> |
|
30 |
</tbody> |
|
31 |
</table> |
|
32 |
</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:
0
diff
changeset
|
33 |
{% endblock %} |