| 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 |
||
| 195 | 8 |
{% block title %}{% blocktrans %}Deactivate notification{% endblocktrans %}{% endblock %} |
| 0 | 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="login" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 25 |
|
26 |
<div class="underline_border"> |
|
| 122 | 27 |
{{ title }} |
| 0 | 28 |
</div> |
29 |
||
30 |
||
31 |
<table class="small_form"> |
|
32 |
<tbody> |
|
33 |
{% include "site/macros/form_fields.html" %} |
|
34 |
<tr> |
|
35 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
36 |
</td> |
|
37 |
<td> |
|
38 |
<label></label> |
|
| 170 | 39 |
<input name="desactivate" type="submit" value="{% blocktrans %}Deactivate{% endblocktrans %}" /> |
| 0 | 40 |
<input name="cancel" type="button" id="cancel_button" value="{% blocktrans %}Cancel{% endblocktrans %}" /> |
41 |
<input type="hidden" name="adminkey" value="{{ notification.adminkey }}"> |
|
42 |
<script type="text/javascript"> |
|
43 |
<!-- |
|
44 |
$(document).ready(function(){ |
|
45 |
$("#cancel_button").click(function (e) { |
|
46 |
window.location = "{% url index %}"; |
|
47 |
e.stopPropagation(); |
|
48 |
}); |
|
49 |
}) ; |
|
50 |
--> |
|
51 |
</script> |
|
52 |
||
53 |
</td> |
|
54 |
</tr> |
|
55 |
</tbody> |
|
56 |
</table> |
|
57 |
||
58 |
</form> |
|
59 |
||
60 |
</div> |
|
|
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:
195
diff
changeset
|
61 |
{% endblock %} |