|
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> |
|
|
31 |
</ul> |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
{% autoescape off %} {{ document }} {% endautoescape %} |
|
|
35 |
|
|
|
36 |
<form id="text_create_content" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
|
|
37 |
<table class="wide_form"> |
|
|
38 |
<tbody> |
|
321
|
39 |
{% with 'create_content' as form_type %} |
|
|
40 |
{% include "site/macros/form_fields.html" %} |
|
|
41 |
{% endwith %} |
|
0
|
42 |
<tr> |
|
|
43 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
|
44 |
</td> |
|
|
45 |
<td> |
|
|
46 |
<label></label> |
|
|
47 |
<input id="save_button" name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
|
48 |
|
|
|
49 |
<input id="cancel_button" type="button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
|
50 |
<script type="text/javascript"> |
|
|
51 |
<!-- |
|
|
52 |
$(document).ready(function(){ |
|
|
53 |
$("#cancel_button").click(function () { |
|
|
54 |
needToConfirm = false ; |
|
|
55 |
window.location = "{% url index %}"; |
|
|
56 |
}); |
|
|
57 |
$("#save_button").click(function () { |
|
|
58 |
needToConfirm = false ; |
|
|
59 |
}); |
|
|
60 |
}) ; |
|
|
61 |
--> |
|
|
62 |
</script> |
|
|
63 |
</td> |
|
|
64 |
</tr> |
|
|
65 |
</tbody> |
|
|
66 |
</table> |
|
|
67 |
</form> |
|
|
68 |
{% endblock %} |