| author | gibus |
| Mon, 21 May 2012 16:50:42 +0200 | |
| changeset 439 | 8994d24e4b2f |
| parent 438 | fcc5e2f0befd |
| child 460 | 2fdb7d095d5c |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load i18n %} |
|
3 |
||
4 |
{% block title %}{% blocktrans %}Upload a 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> |
|
| 237 | 26 |
<li><a href="{% url text-create-content %}">{% blocktrans %}Create a text{% endblocktrans %}</a></li> |
| 0 | 27 |
<li> / </li> |
28 |
<li class="active_sub">{% blocktrans %}Upload a text{% endblocktrans %}</li> |
|
29 |
</ul> |
|
30 |
||
|
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
|
31 |
<form id="text_create_upload" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 0 | 32 |
<table class="wide_form"> |
33 |
<tbody> |
|
| 321 | 34 |
{% with 'upload_content' as form_type %} |
35 |
{% include "site/macros/form_fields.html" %} |
|
36 |
{% endwith %} |
|
| 0 | 37 |
<tr> |
38 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
39 |
</td> |
|
40 |
<td> |
|
41 |
<label></label> |
|
42 |
<input name="save" type="submit" value="{% blocktrans %}Save{% endblocktrans %}"/> |
|
43 |
|
|
44 |
<input id="cancel_button" type="button" value="{% blocktrans %}Cancel{% endblocktrans %}"/> |
|
45 |
||
46 |
<script type="text/javascript"> |
|
47 |
<!-- |
|
48 |
$(document).ready(function(){ |
|
49 |
$("#cancel_button").click(function () { |
|
50 |
window.location = "{% url index %}"; |
|
51 |
}); |
|
52 |
}) ; |
|
53 |
--> |
|
54 |
</script> |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
</tbody> |
|
58 |
</table> |
|
59 |
</form> |
|
60 |
{% endblock %} |