81cb1a664a344473acbf0cb609a0816a3e03376d
[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>
18 {% trans "Browse:" %}
19 {% for crumb in view.breadcrumbs %}
20     {% if crumb.1 %}
21         <a href="{{ crumb.1 }}">{{ crumb.0 }}</a>
22     {% else %}
23         {{ crumb.0 }}
24     {% endif %}
25     {% if not forloop.last %}/{% endif %}
26 {% endfor %}
27 </h1>
28
29
30     <form id="fileupload" method="post" action="." enctype="multipart/form-data">{% csrf_token %}
31         <div class="row fileupload-buttonbar">
32             <div class="span9">
33                 <span class="btn btn-success fileinput-button">
34                     <i class="icon-plus icon-white"></i>
35                     <span>{% trans "Add files..." %}</span>
36                     <input type="file" multiple="" name="files">
37                 </span>
38                 <button class="btn btn-primary start" type="submit">
39                     <i class="icon-upload icon-white"></i>
40                     <span>{% trans "Start upload" %}</span>
41                 </button>
42                 <button class="btn btn-warning cancel" type="reset">
43                     <i class="icon-ban-circle icon-white"></i>
44                     <span>{% trans "Cancel upload" %}</span>
45                 </button>
46                 <button class="btn btn-danger delete" type="button">
47                     <i class="icon-trash icon-white"></i>
48                     <span>{% trans "Delete" %}</span>
49                 </button>
50                 <a class="btn btn-info" href="package">
51                     <i class="icon-gift icon-white"></i>
52                     <span>{% trans "Create package" %}</span>
53                 </a>
54                 <input type="checkbox" class="toggle">
55             </div>
56             <div class="span5 fileupload-progress fade">
57                 <div class="progress progress-success progres-striped active">
58                     <div class="bar" style="width:0%"></div>
59                 </div>
60                 <div class="progress-extended">&nbsp;</div>
61             </div>
62         </div>
63         <div class="fileupload-loading"></div>
64         <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
65     </form>
66     <div class="fileupload-content">
67         <table class="files"></table>
68         <div class="fileupload-progressbar"></div>
69     </div>
70
71 {% endblock %}
72
73 {% block add_js %}
74
75 {% upload_js %}
76 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
77 <script src="{{ STATIC_URL }}fileupload/js/jquery.ui.widget.js"></script>
78 <script src="{{ STATIC_URL }}fileupload/js/tmpl.min.js"></script>
79 <script src="{{ STATIC_URL }}fileupload/js/load-image.min.js"></script>
80 <script src="{{ STATIC_URL }}fileupload/js/canvas-to-blob.min.js"></script>
81 <script src="{{ STATIC_URL }}fileupload/js/bootstrap.min.js"></script>
82 <script src="{{ STATIC_URL }}fileupload/js/bootstrap-image-gallery.min.js"></script>
83 <script src="{{ STATIC_URL }}fileupload/js/jquery.iframe-transport.js"></script>
84 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload.js"></script>
85 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-fp.js"></script>
86 <script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-ui.js"></script>
87 <script src="{{ STATIC_URL }}fileupload/js/locale-{{ LANGUAGE_CODE }}.js"></script>
88 <script src="{{ STATIC_URL }}fileupload/js/main.js"></script>
89 <script src="{{ STATIC_URL }}fileupload/js/csrf.js"></script>
90 {% endblock %}