HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
upload.php
Go to the documentation of this file.
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) { %}
11  <td>
12  <div class="progress progress-success progress-striped active"><div class="bar" style="width:0%;"></div></div>
13  </td>
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>
18  </button>
19  {% } %}</td>
20  {% } else { %}
21  <td colspan="2"></td>
22  {% } %}
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>
27  </button>
28  {% } %}</td>
29  </tr>
30 {% } %}
31 </script>