|
1 {% extends "site/layout/base_workspace.html" %} |
|
2 {% load i18n %} |
|
3 |
|
4 {% block title %}{% blocktrans %}Write a text{% endblocktrans %}{% endblock %} |
|
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> |
|
28 <li class="active_sub">{% blocktrans %}Write a text{% endblocktrans %}</li> |
|
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> |
|
39 {% include "site/macros/form_fields.html" %} |
|
40 <tr> |
|
41 <td style="vertical-align: top; width: 20%; text-align:right;"> |
|
42 </td> |
|
43 <td> |
|
44 <label></label> |
|
45 <input id="save_button" name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
46 |
|
47 <input id="cancel_button" type="button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
48 <script type="text/javascript"> |
|
49 <!-- |
|
50 $(document).ready(function(){ |
|
51 $("#cancel_button").click(function () { |
|
52 needToConfirm = false ; |
|
53 window.location = "{% url index %}"; |
|
54 }); |
|
55 $("#save_button").click(function () { |
|
56 needToConfirm = false ; |
|
57 }); |
|
58 }) ; |
|
59 --> |
|
60 </script> |
|
61 </td> |
|
62 </tr> |
|
63 </tbody> |
|
64 </table> |
|
65 </form> |
|
66 {% endblock %} |