| author | gibus |
| Mon, 21 May 2012 16:50:42 +0200 | |
| changeset 439 | 8994d24e4b2f |
| parent 436 | 83b032cbf471 |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% load i18n %} |
2 |
<div id="login_container"> |
|
3 |
||
|
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:
436
diff
changeset
|
4 |
<form id="login" enctype="multipart/form-data" class="wizard-form" action="{% url login %}" method="post"> |
| 0 | 5 |
|
6 |
<div class="underline_border"> |
|
7 |
{% blocktrans with CONF.workspace_name as wname %}{{ wname }} Login{% endblocktrans %} |
|
8 |
</div> |
|
9 |
||
10 |
||
11 |
<table class="small_form"> |
|
12 |
<tbody> |
|
13 |
{% include "site/macros/form_fields.html" %} |
|
14 |
<tr> |
|
15 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
16 |
</td> |
|
17 |
<td> |
|
18 |
<label></label> |
|
| 220 | 19 |
<input name="login" type="submit" value="{% blocktrans %}Login{% endblocktrans %}"/> |
20 |
{% if CONF.workspace_registration %}<br/><a href="{% url register %}">{% blocktrans %}Register{% endblocktrans %}</a>{% endif %} |
|
21 |
<br /><a href="{% url forgot-pw %}">{% blocktrans %}Forgot password?{% endblocktrans %}</a> |
|
| 0 | 22 |
</td> |
23 |
</tr> |
|
24 |
</tbody> |
|
25 |
</table> |
|
26 |
||
27 |
{% if request.GET.next %} |
|
28 |
<input type="hidden" name="next" value="{{ request.GET.next }}"> |
|
29 |
{% endif %} |
|
|
285
1070d52adc11
propagates query string parameters when login in (so that link with direct coment id are properly propagated)
raph
parents:
220
diff
changeset
|
30 |
{% if request.GET.q %} |
|
1070d52adc11
propagates query string parameters when login in (so that link with direct coment id are properly propagated)
raph
parents:
220
diff
changeset
|
31 |
<input type="hidden" name="q" value="{{ request.GET.q }}"> |
|
1070d52adc11
propagates query string parameters when login in (so that link with direct coment id are properly propagated)
raph
parents:
220
diff
changeset
|
32 |
{% endif %} |
| 0 | 33 |
|
34 |
</form> |
|
35 |
||
|
417
c5e91f204371
After investigations, commit the proposed patch by kklimonda presented with the
Simon Descarpentries <sid@sopinspace.com>
parents:
285
diff
changeset
|
36 |
</div> |