1 <!-- The
template to display files available
for upload -->
2 <script
id=
"template-upload" type=
"text/x-tmpl">
3 {%
for (var i=0, file; file=o.files[i]; i++) { %}
4 <tr
class=
"template-upload fade">
5 <td
class=
"preview"><span
class=
"fade"></span></td>
6 <td
class=
"name"><span>{%=file.name%}</span></td>
7 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
8 {%
if (file.error) { %}
9 <td
class=
"error" colspan=
"2"><span
class=
"label label-danger">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
10 {% }
else if (o.files.valid && !i) { %}
12 <div
class=
"progress progress-success progress-striped active"><div
class=
"bar" style=
"width:0%;"></div></div>
14 <td
class=
"start">{%
if (!o.options.autoUpload) { %}
15 <button
class=
"btn btn-primary">
16 <i
class=
"icon-upload icon-white"></i>
17 <span>{%=locale.fileupload.start%}</span>
23 <td
class=
"cancel">{%
if (!i) { %}
24 <button
class=
"btn btn-warning">
25 <i
class=
"icon-ban-circle icon-white"></i>
26 <span>{%=locale.fileupload.cancel%}</span>