52ac3cc2427ad95b03d512ac775a833f5952ba69
[redakcja.git] / apps / fileupload / templates / fileupload / picture_form.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3 {% load upload_tags %}
4
5 {% block add_css %}
6     <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/bootstrap.min.css">
7     <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/style.css">
8     <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/bootstrap-image-gallery.min.css">
9     <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/jquery.fileupload-ui.css">
10     <!-- Shim to make HTML5 elements usable in older Internet Explorer versions -->
11     <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
12 {% endblock %}
13
14
15 {% block content %}
16
17 <h1>{% trans "Gallery for:" %} <a href="{{ view.object.get_absolute_url }}">{{ view.object }}</a></h1>
18
19
20
21     <form id="fileupload" method="post" action="." enctype="multipart/form-data">{% csrf_token %}
22         <div class="row fileupload-buttonbar">
23             <div class="span7">
24                 <span class="btn btn-success fileinput-button">
25                     <i class="icon-plus icon-white"></i>
26                     <span>{% trans "Add files..." %}</span>
27                     <input type="file" multiple="" name="files[]">
28                 </span>
29                 <button class="btn btn-primary start" type="submit">
30                     <i class="icon-upload icon-white"></i>
31                     <span>{% trans "Start upload" %}</span>
32                 </button>
33                 <button class="btn btn-warning cancel" type="reset">
34                     <i class="icon-ban-circle icon-white"></i>
35                     <span>{% trans "Cancel upload" %}</span>
36                 </button>
37                 <button class="btn btn-danger delete" type="button">
38                     <i class="icon-trash icon-white"></i>
39                     <span>{% trans "Delete" %}</span>
40                 </button>
41                 <input type="checkbox" class="toggle">
42             </div>
43             <div class="span5 fileupload-progress fade">
44                 <div class="progress progress-success progres-striped active">
45                     <div class="bar" style="width:0%"></div>
46                 </div>
47                 <div class="progress-extended">&nbsp;</div>
48             </div>
49         </div>
50         <div class="fileupload-loading"></div>
51         <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
52     </form>
53     <div class="fileupload-content">
54         <table class="files"></table>
55         <div class="fileupload-progressbar"></div>
56     </div>
57
58 {% endblock %}
59
60 {% block add_js %}
61
62 {% upload_js %}
63 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
64 <script src="{{ STATIC_URL }}fileupload/js/jquery.ui.widget.js"></script>
65 <script src="{{ STATIC_URL }}fileupload/js/tmpl.min.js"></script>
66 <script src="{{ STATIC_URL }}fileupload/js/load-image.min.js"></script>
67 <script src="{{ STATIC_URL }}fileupload/js/canvas-to-blob.min.js"></script>
68 <script src="{{ STATIC_URL }}fileupload/js/bootstrap.min.js"></script>
69 <script src="{{ STATIC_URL }}fileupload/js/bootstrap-image-gallery.min.js"></script>
70 <script src="{{ STATIC_URL }}fileupload/js/jquery.iframe-transport.js"></script>
71 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload.js"></script>
72 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-fp.js"></script>
73 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-ui.js"></script>
74 <script src="{{ STATIC_URL }}fileupload/js/locale.js"></script>
75 <script src="{{ STATIC_URL }}fileupload/js/main.js"></script>
76 <script src="{{ STATIC_URL }}fileupload/js/csrf.js"></script>
77 {% endblock %}