| author | gibus |
| Tue, 11 Feb 2014 12:33:25 +0100 | |
| changeset 572 | 93383e54e042 |
| 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 title %}{% blocktrans %}Register{% endblocktrans %}{% endblock %} |
|
9 |
||
10 |
{% block content %} |
|
11 |
||
| 550 | 12 |
<h1 class="main_title"> |
13 |
{% if CONF.f_get_logo_url %} |
|
14 |
<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 | 15 |
{% endif %} |
| 550 | 16 |
|
17 |
{% if CONF.workspace_name %} |
|
18 |
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a> |
|
19 |
{% endif %} |
|
20 |
</h1> |
|
| 0 | 21 |
|
22 |
<div id="login_container"> |
|
23 |
||
|
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
|
24 |
<form id="register" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 25 |
|
26 |
<div class="underline_border"> |
|
27 |
{% blocktrans with CONF.workspace_name as wname %}{{ wname }} Registration{% endblocktrans %} |
|
28 |
</div> |
|
29 |
||
30 |
||
31 |
<table class="small_form"> |
|
32 |
<tbody> |
|
33 |
{% for form in forms %} |
|
34 |
{% include "site/macros/form_fields.html" %} |
|
35 |
{% endfor %} |
|
36 |
<tr> |
|
37 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
38 |
</td> |
|
39 |
<td> |
|
40 |
<label></label> |
|
41 |
<input name="register" type="submit" value="Register"/> |
|
42 |
</td> |
|
43 |
</tr> |
|
44 |
</tbody> |
|
45 |
</table> |
|
46 |
||
47 |
</form> |
|
48 |
||
49 |
</div> |
|
50 |
||
|
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
|
51 |
{% endblock %} |