| author | gibus |
| Tue, 16 Jul 2013 14:29:46 +0200 | |
| changeset 525 | 89ef5ed3c48b |
| parent 439 | 8994d24e4b2f |
| child 550 | 05b5e51e8823 |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load com %} |
|
3 |
{% load i18n %} |
|
4 |
||
5 |
{% block title %} |
|
6 |
{% blocktrans %}Contact{% endblocktrans %} |
|
7 |
{% endblock %} |
|
8 |
||
9 |
{% block head %} |
|
10 |
{% endblock %} |
|
11 |
||
12 |
{% block content %} |
|
13 |
||
14 |
<h1>Contact</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
|
15 |
<form id="profile" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 16 |
<table class="wide_form"> |
17 |
<tbody> |
|
18 |
{% include "site/macros/form_fields.html" %} |
|
19 |
<tr> |
|
20 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
21 |
</td> |
|
22 |
<td> |
|
23 |
<label></label> |
|
24 |
<input name="send" type="submit" value="{% blocktrans %}Send{% endblocktrans %}"/> |
|
25 |
||
26 |
<input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
27 |
<script type="text/javascript"> |
|
28 |
<!-- |
|
29 |
$(document).ready(function(){ |
|
30 |
$("#cancel_button").click(function (e) { |
|
31 |
window.location = "{% url index %}"; |
|
32 |
e.stopPropagation(); |
|
33 |
}); |
|
34 |
}) ; |
|
35 |
--> |
|
36 |
</script> |
|
37 |
</td> |
|
38 |
</tr> |
|
39 |
</tbody> |
|
40 |
</table> |
|
41 |
</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
|
42 |
{% endblock %} |