| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 551 | 723261fb23fb |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load i18n %} |
|
3 |
{% load com %} |
|
4 |
||
5 |
{% block head %} |
|
6 |
{% endblock %} |
|
7 |
||
8 |
{% block content %} |
|
9 |
||
| 550 | 10 |
<h1 class="main_title"> |
11 |
{% if CONF.f_get_logo_url %} |
|
12 |
<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 | 13 |
{% endif %} |
| 550 | 14 |
|
15 |
{% if CONF.workspace_name %} |
|
16 |
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a> |
|
17 |
{% endif %} |
|
18 |
</h1> |
|
| 0 | 19 |
<h1>{% blocktrans %}Activate your account{% endblocktrans %}</h1> |
20 |
||
|
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
|
21 |
<form id="activate" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 22 |
<table class="wide_form"> |
23 |
<tbody> |
|
24 |
{% for form in forms %} |
|
25 |
{% include "site/macros/form_fields.html" %} |
|
26 |
{% endfor %} |
|
27 |
<tr> |
|
28 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
29 |
</td> |
|
30 |
<td> |
|
31 |
<label></label> |
|
32 |
<input name="activate" type="submit" value="{% blocktrans %}Activate{% endblocktrans %}"/> |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
</tbody> |
|
36 |
</table> |
|
37 |
</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
|
38 |
{% endblock %} |