equal
deleted
inserted
replaced
|
1 {% extends "site/layout/base_workspace.html" %} |
|
2 {% load i18n %} |
|
3 |
|
4 {% block title %}{% blocktrans %}Import a co-mented text{% endblocktrans %}{% endblock %} |
|
5 |
|
6 {% block main %} |
|
7 <script type="text/javascript"> |
|
8 <!-- |
|
9 tb_conf['current_tab'] = 'text'; |
|
10 --> |
|
11 </script> |
|
12 |
|
13 <script type="text/javascript"> |
|
14 <!-- |
|
15 $(function() { |
|
16 $(".hidden-text-actions").css('visibility','hidden'); |
|
17 }) ; |
|
18 --> |
|
19 </script> |
|
20 |
|
21 <div id="text" class="tab-meta"> |
|
22 |
|
23 <ul class="sub_list"> |
|
24 <li><a href="{% url text %}">{% blocktrans %}Text list{% endblocktrans %}</a></li> |
|
25 <li> / </li> |
|
26 <li><a href="{% url text-create-content %}">{% blocktrans %}Create a text{% endblocktrans %}</a></li> |
|
27 <li> / </li> |
|
28 <li><a href="{% url text-create-upload %}">{% blocktrans %}Upload a text{% endblocktrans %}</a></li> |
|
29 <li> / </li> |
|
30 <li class="active_sub">{% blocktrans %}Import a co-mented text{% endblocktrans %}</li> |
|
31 </ul> |
|
32 |
|
33 <form id="text_create_import" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
|
34 <table class="wide_form"> |
|
35 <tbody> |
|
36 {% with 'import_content' as form_type %} |
|
37 {% include "site/macros/form_fields.html" %} |
|
38 {% endwith %} |
|
39 <tr> |
|
40 <td style="vertical-align: top; width: 20%; text-align:right;"> |
|
41 </td> |
|
42 <td> |
|
43 <label></label> |
|
44 <input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
45 |
|
46 <input id="cancel_button" type="button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
47 |
|
48 <script type="text/javascript"> |
|
49 <!-- |
|
50 $(document).ready(function(){ |
|
51 $("#cancel_button").click(function () { |
|
52 window.location = "{% url index %}"; |
|
53 }); |
|
54 }) ; |
|
55 --> |
|
56 </script> |
|
57 </td> |
|
58 </tr> |
|
59 </tbody> |
|
60 </table> |
|
61 </form> |
|
62 {% endblock %} |