| author | gibus |
| Fri, 10 Aug 2012 16:12:29 +0200 | |
| changeset 460 | 2fdb7d095d5c |
| parent 439 | 8994d24e4b2f |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load i18n %} |
|
3 |
||
| 237 | 4 |
{% block title %}{% blocktrans %}Create a text{% endblocktrans %}{% endblock %} |
| 0 | 5 |
|
6 |
{% block main %} |
|
7 |
{% include "site/macros/text_editor.html" %} |
|
8 |
||
9 |
<script type="text/javascript"> |
|
10 |
<!-- |
|
11 |
tb_conf['current_tab'] = 'text'; |
|
12 |
--> |
|
13 |
</script> |
|
14 |
||
15 |
<script type="text/javascript"> |
|
16 |
<!-- |
|
17 |
$(function() { |
|
18 |
$(".hidden-text-actions").css('visibility','hidden'); |
|
19 |
}) ; |
|
20 |
--> |
|
21 |
</script> |
|
22 |
||
23 |
<div id="text" class="tab-meta"> |
|
24 |
||
25 |
<ul class="sub_list"> |
|
26 |
<li><a href="{% url text %}">{% blocktrans %}Text list{% endblocktrans %}</a></li> |
|
27 |
<li> / </li> |
|
| 237 | 28 |
<li class="active_sub">{% blocktrans %}Create a text{% endblocktrans %}</li> |
| 0 | 29 |
<li> / </li> |
30 |
<li><a href="{% url text-create-upload %}">{% blocktrans %}Upload a text{% endblocktrans %}</a></li> |
|
|
460
2fdb7d095d5c
Added import from XML file, including text, comments and attachments.
gibus
parents:
439
diff
changeset
|
31 |
<li> / </li> |
|
2fdb7d095d5c
Added import from XML file, including text, comments and attachments.
gibus
parents:
439
diff
changeset
|
32 |
<li><a href="{% url text-create-import %}">{% blocktrans %}Import a co-mented text{% endblocktrans %}</a></li> |
| 0 | 33 |
</ul> |
34 |
||
35 |
||
36 |
{% autoescape off %} {{ document }} {% endautoescape %} |
|
37 |
||
|
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
|
38 |
<form id="text_create_content" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 39 |
<table class="wide_form"> |
40 |
<tbody> |
|
| 321 | 41 |
{% with 'create_content' as form_type %} |
42 |
{% include "site/macros/form_fields.html" %} |
|
43 |
{% endwith %} |
|
| 0 | 44 |
<tr> |
45 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
46 |
</td> |
|
47 |
<td> |
|
48 |
<label></label> |
|
49 |
<input id="save_button" name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
50 |
|
|
51 |
<input id="cancel_button" type="button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
52 |
<script type="text/javascript"> |
|
53 |
<!-- |
|
54 |
$(document).ready(function(){ |
|
55 |
$("#cancel_button").click(function () { |
|
56 |
needToConfirm = false ; |
|
57 |
window.location = "{% url index %}"; |
|
58 |
}); |
|
59 |
$("#save_button").click(function () { |
|
60 |
needToConfirm = false ; |
|
61 |
}); |
|
62 |
}) ; |
|
63 |
--> |
|
64 |
</script> |
|
65 |
</td> |
|
66 |
</tr> |
|
67 |
</tbody> |
|
68 |
</table> |
|
69 |
</form> |
|
70 |
{% endblock %} |