| author | gibus |
| Mon, 21 May 2012 16:50:42 +0200 | |
| changeset 439 | 8994d24e4b2f |
| parent 438 | fcc5e2f0befd |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_text.html" %} |
2 |
{% load i18n %} |
|
3 |
{% load com %} |
|
4 |
||
5 |
{% block head %} |
|
| 160 | 6 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/site/text_edit.js"></script> |
| 0 | 7 |
{% endblock %} |
8 |
||
9 |
{% block main %} |
|
10 |
{% include "site/macros/text_editor.html" %} |
|
11 |
||
12 |
<script type="text/javascript"> |
|
13 |
<!-- |
|
14 |
tb_conf['current_tab'] = 'edit'; |
|
15 |
// keep get parameters!! |
|
| 230 | 16 |
{% url text-preedit text.key as preedit_url %} |
17 |
tb_conf['pre_edit_url'] = '{{ preedit_url }}{{ preedit_url|url_args }}{{ request.GET.urlencode }}'; |
|
| 0 | 18 |
--> |
19 |
</script> |
|
20 |
||
21 |
<div style="display: none;"> |
|
| 103 | 22 |
<div id="confirm_all_removed_dlg"></div> |
23 |
<div id="remove_scope_choice_dlg"></div> |
|
| 0 | 24 |
</div> |
25 |
||
26 |
<div id="text_edit" class="tab-meta"> |
|
|
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
|
27 |
<form id="edit_form" class="text-form wizard-form" action="." method="post"> |
| 0 | 28 |
<table class="wide_form"> |
29 |
<tbody> |
|
30 |
{% include "site/macros/form_fields.html" %} |
|
31 |
<tr> |
|
32 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
33 |
</td> |
|
34 |
<td> |
|
35 |
<label></label> |
|
| 103 | 36 |
<input name="cancel_modified_scopes" id="cancel_modified_scopes" type="hidden"/> |
| 0 | 37 |
<input name="save" id="save" type="button" value="{% blocktrans %}Save{% endblocktrans %}"/> |
38 |
</td> |
|
39 |
</tr> |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
</form> |
|
43 |
</div> |
|
44 |
||
45 |
{% endblock %} |