Advertisement
Guest User

Untitled

a guest
Aug 1st, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script id="template-upload" type="text/x-tmpl">
  2.     {% for (var i=0, file; file=o.files[i]; i++) { %}
  3.         <tr class="template-upload fade">
  4.             <td>
  5.                 <span class="preview"></span>
  6.             </td>
  7.             <td>
  8.                 <p class="name">{%=file.name%}</p>
  9.                 {% if (file.error) { %}
  10.                     <div><span class="label label-important">Error</span> {%=file.error%}</div>
  11.                 {% } %}
  12.             </td>
  13.             <td>
  14.                 <p class="size">{%=o.formatFileSize(file.size)%}</p>
  15.                 {% if (!o.files.error) { %}
  16.                     <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>
  17.                 {% } %}
  18.             </td>
  19.             <td>
  20.                 {% if (!o.files.error && !i && !o.options.autoUpload) { %}
  21.                     <button class="btn btn-primary start">
  22.                         <i class="icon-upload icon-white"></i>
  23.                         <span>Start</span>
  24.                     </button>
  25.                 {% } %}
  26.                 {% if (!i) { %}
  27.                     <button class="btn btn-warning cancel">
  28.                         <i class="icon-ban-circle icon-white"></i>
  29.                         <span>Cancel</span>
  30.                     </button>
  31.                 {% } %}
  32.             </td>
  33.         </tr>
  34.     {% } %}
  35.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement