Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- {% if (file.error) { %}
- <div><span class="label label-important">Error</span> {%=file.error%}</div>
- {% } %}
- </td>
- <td>
- <p class="size">{%=o.formatFileSize(file.size)%}</p>
- {% if (!o.files.error) { %}
- <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="bar" style="width:0%;"></div></div>
- {% } %}
- </td>
- <td>
- {% if (!o.files.error && !i && !o.options.autoUpload) { %}
- <button class="btn btn-primary start">
- <i class="icon-upload icon-white"></i>
- <span>Start</span>
- </button>
- {% } %}
- {% if (!i) { %}
- <button class="btn btn-warning cancel">
- <i class="icon-ban-circle icon-white"></i>
- <span>Cancel</span>
- </button>
- {% } %}
- </td>
- </tr>
- {% } %}
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement