-
Notifications
You must be signed in to change notification settings - Fork 223
/
component_fileupload.html
591 lines (581 loc) · 32.5 KB
/
component_fileupload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
<!-- light-blue - v3.1.0 - 2014-12-06 -->
<!DOCTYPE html>
<html>
<head>
<title>Light Blue - Responsive Admin Dashboard Template</title>
<link href="css/application.min.css" rel="stylesheet">
<link rel="shortcut icon" href="img/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta charset="utf-8">
<script>
/* yeah we need this empty stylesheet here. It's cool chrome & chromium fix
chrome fix https://code.google.com/p/chromium/issues/detail?id=167083
https://code.google.com/p/chromium/issues/detail?id=332189
*/
</script>
</head>
<body class="background-dark">
<div class="logo">
<h4><a href="index.html">Light <strong>Blue</strong></a></h4>
</div>
<nav id="sidebar" class="sidebar nav-collapse collapse">
<ul id="side-nav" class="side-nav">
<li class="">
<a href="index.html"><i class="fa fa-home"></i> <span class="name">Dashboard</span></a>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#forms-collapse"><i class="fa fa-pencil"></i> <span class="name">Forms</span></a>
<ul id="forms-collapse" class="panel-collapse collapse ">
<li class=""><a href="form_account.html">Account</a></li>
<li class=""><a href="form_article.html">Article</a></li>
<li class=""><a href="form_elements.html">Elements</a></li>
<li class=""><a href="form_validation.html">Validation</a></li>
<li class=""><a href="form_wizard.html">Wizard</a></li>
</ul>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#stats-collapse"><i class="fa fa-area-chart"></i> <span class="name">Statistics</span></a>
<ul id="stats-collapse" class="panel-collapse collapse ">
<li class=""><a href="stat_statistics.html">Stats</a></li>
<li class=""><a href="stat_charts.html">Charts</a></li>
<li class=""><a href="stat_realtime.html">Realtime</a></li>
</ul>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#ui-collapse"><i class="fa fa-magic"></i> <span class="name">User Interface</span></a>
<ul id="ui-collapse" class="panel-collapse collapse ">
<li class=""><a href="ui_buttons.html">Buttons</a></li>
<li class=""><a href="ui_dialogs.html">Dialogs</a></li>
<li class=""><a href="ui_notifications.html">Notifications</a></li>
<li class=""><a href="ui_icons.html">Icons</a></li>
<li class=""><a href="ui_tabs.html">Tabs</a></li>
<li class=""><a href="ui_accordion.html">Accordion</a></li>
</ul>
</li>
<li class="panel active">
<a class="accordion-toggle " data-toggle="collapse"
data-parent="#side-nav" href="#components-collapse"><i class="fa fa-tree"></i> <span class="name">Components</span></a>
<ul id="components-collapse" class="panel-collapse collapse in">
<li class=""><a href="component_calendar.html">Calendar</a></li>
<li class=""><a href="component_maps.html" data-no-pjax>Maps</a></li>
<li class=""><a href="component_gallery.html">Gallery</a></li>
<li class="active"><a href="component_fileupload.html" data-no-pjax>Fileupload</a></li>
<li class=""><a href="component_bootstrap.html">Bootstrap</a></li>
<li class=""><a href="component_list_groups.html">List Groups</a></li>
</ul>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#tables-collapse"><i class="fa fa-cog"></i> <span class="name">Tables</span></a>
<ul id="tables-collapse" class="panel-collapse collapse ">
<li class=""><a href="tables_static.html">Static <sup class="text-danger fw-bold">upd</sup></a></li>
<li class=""><a href="tables_dynamic.html">Dynamic</a></li>
</ul>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#grid-collapse"><i class="fa fa-th"></i> <span class="name">Widgets</span></a>
<ul id="grid-collapse" class="panel-collapse collapse ">
<li class=""><a href="grid_basic.html">Basic</a></li>
<li class=""><a href="grid_live.html">Live</a></li>
</ul>
</li>
<li class="panel ">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#special-collapse"><i class="fa fa-leaf"></i> <span class="name">Special</span></a>
<ul id="special-collapse" class="panel-collapse collapse ">
<li class=""><a href="special_search.html">Search <sup class="text-warning fw-bold">new</sup></a></li>
<li class=""><a href="special_invoice.html">Invoice</a></li>
<li class=""><a href="special_inbox.html">Inbox <span class="label label-important">3</span></a></li>
<li><a target="_blank" href="login.html">Login</a></li>
<li><a target="_blank" href="error.html">Error Page</a></li>
<li><a href="landing.html" data-no-pjax>Landing</a></li>
<li><a href="../white/index.html" data-no-pjax>White <sup class="text-warning fw-bold">new</sup></a></li>
</ul>
</li>
<li class="panel">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#side-nav" href="#menu-levels-collapse"><i class="fa fa-folder-open"></i> <span class="name">Menu Levels</span></a>
<ul id="menu-levels-collapse" class="panel-collapse collapse">
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li class="panel">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#menu-levels-collapse" href="#sub-menu-1-collapse">Item 1.3</a>
<ul id="sub-menu-1-collapse" class="panel-collapse collapse">
<li class="panel">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#sub-menu-1-collapse" href="#sub-menu-3-collapse">Item 2.1</a>
<ul id="sub-menu-3-collapse" class="panel-collapse collapse">
<li><a href="#">Item 3.1</a></li>
<li><a href="#">Item 3.2</a></li>
<li><a href="#">Item 3.3</a></li>
</ul>
</li>
<li><a href="#">Item 2.2</a></li>
<li class="panel">
<a class="accordion-toggle collapsed" data-toggle="collapse"
data-parent="#sub-menu-1-collapse" href="#sub-menu-2-collapse">Item 2.3</a>
<ul id="sub-menu-2-collapse" class="panel-collapse collapse">
<li><a href="#">Item 3.4</a></li>
<li><a href="#">Item 3.5</a></li>
<li><a href="#">Item 3.6</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="visible-xs">
<a href="login.html"><i class="fa fa-sign-out"></i> <span class="name">Sign Out</span></a>
</li>
</ul>
<h5 class="sidebar-nav-title">Labels <a class="action-link" href="#"><i class="glyphicon glyphicon-plus"></i></a></h5>
<!-- some styled links in sidebar. ready to use as links to email folders, projects, groups, etc -->
<ul class="sidebar-labels">
<li>
<a href="#">
<!-- yep, .circle again -->
<i class="fa fa-circle text-warning"></i>
<span class="label-name">My Recent</span>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-circle text-gray"></i>
<span class="label-name">Starred</span>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-circle text-danger"></i>
<span class="label-name">Background</span>
</a>
</li>
</ul>
<h5 class="sidebar-nav-title">Projects</h5>
<!-- A place for sidebar notifications & alerts -->
<div class="sidebar-alerts">
<div class="alert fade in">
<a href="#" class="close" data-dismiss="alert" aria-hidden="true">×</a>
<span class="text-white fw-semi-bold">Sales Report</span> <br>
<div class="progress progress-xs mt-xs mb-0">
<div class="progress-bar progress-bar-gray-light" style="width: 16%"></div>
</div>
<small>Calculating x-axis bias... 65%</small>
</div>
<div class="alert fade in">
<a href="#" class="close" data-dismiss="alert" aria-hidden="true">×</a>
<span class="text-white fw-semi-bold">Personal Responsibility</span> <br>
<div class="progress progress-xs mt-xs mb-0">
<div class="progress-bar progress-bar-danger" style="width: 23%"></div>
</div>
<small>Provide required notes</small>
</div>
</div>
</nav> <div class="wrap">
<header class="page-header">
<div class="navbar">
<ul class="nav navbar-nav navbar-right pull-right">
<li class="visible-phone-landscape">
<a href="#" id="search-toggle">
<i class="fa fa-search"></i>
</a>
</li>
<li class="dropdown">
<a href="#" title="Messages" id="messages"
class="dropdown-toggle"
data-toggle="dropdown">
<i class="fa fa-comments"></i>
</a>
<ul id="messages-menu" class="dropdown-menu messages" role="menu">
<li role="presentation">
<a href="#" class="message">
<img src="img/1.jpg" alt="">
<div class="details">
<div class="sender">Jane Hew</div>
<div class="text">
Hey, John! How is it going? ...
</div>
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="message">
<img src="img/2.jpg" alt="">
<div class="details">
<div class="sender">Alies Rumiancaŭ</div>
<div class="text">
I'll definitely buy this template
</div>
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="message">
<img src="img/3.jpg" alt="">
<div class="details">
<div class="sender">Michał Rumiancaŭ</div>
<div class="text">
Is it really Lore ipsum? Lore ...
</div>
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="text-align-center see-all">
See all messages <i class="fa fa-arrow-right"></i>
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" title="8 support tickets"
class="dropdown-toggle"
data-toggle="dropdown">
<i class="fa fa-group"></i>
<span class="count">8</span>
</a>
<ul id="support-menu" class="dropdown-menu support" role="menu">
<li role="presentation">
<a href="#" class="support-ticket">
<div class="picture">
<span class="label label-important"><i class="fa fa-bell-o"></i></span>
</div>
<div class="details">
Check out this awesome ticket
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="support-ticket">
<div class="picture">
<span class="label label-warning"><i class="fa fa-question-circle"></i></span>
</div>
<div class="details">
"What is the best way to get ...
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="support-ticket">
<div class="picture">
<span class="label label-success"><i class="fa fa-tag"></i></span>
</div>
<div class="details">
This is just a simple notification
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="support-ticket">
<div class="picture">
<span class="label label-info"><i class="fa fa-info-circle"></i></span>
</div>
<div class="details">
12 new orders has arrived today
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="support-ticket">
<div class="picture">
<span class="label label-important"><i class="fa fa-plus"></i></span>
</div>
<div class="details">
One more thing that just happened
</div>
</a>
</li>
<li role="presentation">
<a href="#" class="text-align-center see-all">
See all tickets <i class="fa fa-arrow-right"></i>
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="hidden-xs">
<a href="#" id="settings"
title="Settings"
data-toggle="popover"
data-placement="bottom">
<i class="fa fa-cog"></i>
</a>
</li>
<li class="hidden-xs dropdown">
<a href="#" title="Account" id="account"
class="dropdown-toggle"
data-toggle="dropdown">
<i class="fa fa-user"></i>
</a>
<ul id="account-menu" class="dropdown-menu account" role="menu">
<li role="presentation" class="account-picture">
<img src="img/2.jpg" alt="">
Philip Daineka
</li>
<li role="presentation">
<a href="form_account.html" class="link">
<i class="fa fa-user"></i>
Profile
</a>
</li>
<li role="presentation">
<a href="component_calendar.html" class="link">
<i class="fa fa-calendar"></i>
Calendar
</a>
</li>
<li role="presentation">
<a href="#" class="link">
<i class="fa fa-inbox"></i>
Inbox
</a>
</li>
</ul>
</li>
<li class="visible-xs">
<a href="#"
class="btn-navbar"
data-toggle="collapse"
data-target=".sidebar"
title="">
<i class="fa fa-bars"></i>
</a>
</li>
<li class="hidden-xs"><a href="login.html"><i class="fa fa-sign-out"></i></a></li>
</ul>
<form id="search-form" class="navbar-form pull-right" role="search">
<input type="search" class="form-control search-query" placeholder="Search...">
</form>
<div class="notifications pull-right">
<div class="alert pull-right">
<a href="#" class="close ml-xs" data-dismiss="alert">×</a>
<i class="fa fa-info-circle mr-xs"></i> Check out Light Blue <a id="notification-link" href="#">settings</a> on the right!
</div>
</div>
</div>
</header> <div class="content container">
<h2 class="page-title">Components - <span class="fw-semi-bold">Fileupload</span> <small>Drag & drop fileupload</small></h2>
<div class="row">
<div class="col-md-8 col-md-offset-1">
<section class="widget">
<div class="body">
<form id="fileupload" action="server/php" method="POST" enctype="multipart/form-data">
<div class="row">
<div class="col-md-12">
<div id="dropzone" class="dropzone">
Drop files here
<i class="fa fa-download-alt pull-right"></i>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 fileupload-progress fade">
<!-- The global progress bar -->
<div class="progress progress-xs active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-bar-inverse" style="width:0%;"></div>
</div>
<!-- The extended global progress state -->
<div class="progress-extended"> </div>
</div>
</div>
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
<div class="form-actions fileupload-buttonbar no-margin">
<!-- The fileinput-button span is used to style the file input field as button -->
<span class="btn btn-default fileinput-button mr-xs">
<i class="glyphicon glyphicon-plus"></i>
<span>Add files...</span>
<input type="file" name="files[]" multiple>
</span>
<button type="submit" class="btn btn-primary start mr-xs">
<i class="glyphicon glyphicon-upload"></i>
<span>Start upload</span>
</button>
<button type="reset" class="btn btn-inverse cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>Cancel upload</span>
</button>
</div>
<!-- The table listing the files available for upload/download -->
<table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
</form>
</div>
</section>
</div>
</div>
</div>
<div class="loader-wrap hiding hide">
<i class="fa fa-circle-o-notch fa-spin"></i>
</div>
</div>
<!-- common libraries. required for every page-->
<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="lib/jquery-pjax/jquery.pjax.js"></script>
<script src="lib/bootstrap-sass-official/assets/javascripts/bootstrap.js"></script>
<script src="lib/widgster/widgster.js"></script>
<script src="lib/underscore/underscore.js"></script>
<!-- common application js -->
<script src="js/app.js"></script>
<script src="js/settings.js"></script>
<!-- common templates -->
<script type="text/template" id="settings-template">
<div class="setting clearfix">
<div>Background</div>
<div id="background-toggle" class="pull-left btn-group" data-toggle="buttons-radio">
<% dark = background == 'dark'; light = background == 'light';%>
<button type="button" data-value="dark" class="btn btn-sm btn-default <%= dark? 'active' : '' %>">Dark</button>
<button type="button" data-value="light" class="btn btn-sm btn-default <%= light? 'active' : '' %>">Light</button>
</div>
</div>
<div class="setting clearfix">
<div>Sidebar on the</div>
<div id="sidebar-toggle" class="pull-left btn-group" data-toggle="buttons-radio">
<% onRight = sidebar == 'right'%>
<button type="button" data-value="left" class="btn btn-sm btn-default <%= onRight? '' : 'active' %>">Left</button>
<button type="button" data-value="right" class="btn btn-sm btn-default <%= onRight? 'active' : '' %>">Right</button>
</div>
</div>
<div class="setting clearfix">
<div>Sidebar</div>
<div id="display-sidebar-toggle" class="pull-left btn-group" data-toggle="buttons-radio">
<% display = displaySidebar%>
<button type="button" data-value="true" class="btn btn-sm btn-default <%= display? 'active' : '' %>">Show</button>
<button type="button" data-value="false" class="btn btn-sm btn-default <%= display? '' : 'active' %>">Hide</button>
</div>
</div>
<div class="setting clearfix">
<div>White Version</div>
<div>
<a href="../white/index.html" class="btn btn-sm btn-default"> Switch <i class="fa fa-angle-right"></i></a>
</div>
</div>
</script>
<script type="text/template" id="sidebar-settings-template">
<% auto = sidebarState == 'auto'%>
<% if (auto) {%>
<button type="button"
data-value="icons"
class="btn-icons btn btn-transparent btn-sm">Icons</button>
<button type="button"
data-value="auto"
class="btn-auto btn btn-transparent btn-sm">Auto</button>
<%} else {%>
<button type="button"
data-value="auto"
class="btn btn-transparent btn-sm">Auto</button>
<% } %>
</script>
<!-- page specific scripts -->
<!-- page specific libs -->
<script src="lib/jquery-ui/ui/core.js"></script>
<script src="lib/jquery-ui/ui/widget.js"></script>
<!-- The Templates plugin is included to render the upload/download listings -->
<script src="//blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="//blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="//blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- blueimp Gallery script -->
<script src="//blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="lib/blueimp-file-upload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload user interface plugin -->
<script src="lib/blueimp-file-upload/js/jquery.fileupload-ui.js"></script>
<!-- page application js -->
<script src="js/component-fileupload.js"></script>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">{%=file.name%}</p>
<strong class="error text-danger"></strong>
</td>
<td>
<p class="size">Processing...</p>
<div class="progress progress-xs active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
</td>
<td>
{% if (!i && !o.options.autoUpload) { %}
<button class="btn btn-primary btn-sm start" disabled>
<i class="glyphicon glyphicon-upload"></i>
<span>Start</span>
</button>
{% } %}
{% if (!i) { %}
<button class="btn btn-warning btn-sm cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>Cancel</span>
</button>
{% } %}
</td>
</tr>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade">
<td>
<span class="preview">
{% if (file.thumbnailUrl) { %}
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
{% } %}
</span>
</td>
<td>
<p class="name">
{% if (file.url) { %}
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
{% } else { %}
<span>{%=file.name%}</span>
{% } %}
</p>
{% if (file.error) { %}
<div><span class="label label-danger">Error</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<span class="size">{%=o.formatFileSize(file.size)%}</span>
</td>
<td>
{% if (file.deleteUrl) { %}
<button class="btn btn-danger btn-sm delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
<i class="glyphicon glyphicon-trash"></i>
<span>Delete</span>
</button>
{% } else { %}
<button class="btn btn-warning btn-sm cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>Cancel</span>
</button>
{% } %}
</td>
</tr>
{% } %}
</script>
</body>
</html>