fields-file.html 1.0 KB

1234567891011121314151617181920212223242526
  1. <script id="tmpl-nf-field-file" type="text/template">
  2. <button type="button" class="nf-file-button nf-element">{{{ data.label }}}</button>
  3. <table class="nf-files-table" role="presentation">
  4. <tbody></tbody>
  5. </table>
  6. {{{ data.renderFileInput() }}}
  7. </script>
  8. <script id="tmpl-nf-field-file-row" type="text/template">
  9. <tr>
  10. <td>{{{ data.filename }}}</td>
  11. <td class="nf-file-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
  12. <div class="nf-file-bar"></div>
  13. <div class="nf-file-percent">0%</div>
  14. </td>
  15. <td>
  16. Delete
  17. <span class="nf-file-input"></span>
  18. </td>
  19. </tr>
  20. </script>
  21. <script id="tmpl-nf-field-file-input" type="text/template">
  22. <input id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" aria-invalid="false" aria-describedby="nf-error-{{{ data.id }}}" class="{{{ data.classes }}} nf-element" type="file" style="display:block;" multiple="multiple">
  23. </script>