You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. div.columns(v-cloak="")
  2. div.column.is-12
  3. messages(v-bind:messages="messages")
  4. div.card
  5. header.card-header
  6. p.card-header-title File Uploader
  7. div.card-content
  8. h2.subtitle Upload a file to annotate text.
  9. div.control(style="margin-bottom: 1em;")
  10. label.radio
  11. input(
  12. v-model="format"
  13. v-bind:checked="format == 'plain'"
  14. type="radio"
  15. name="format"
  16. value="plain"
  17. )
  18. | Plain
  19. block select-format-area
  20. block example-format-area
  21. div.control(style="margin-top: 1em;")
  22. div.file.has-name.is-primary
  23. label.file-label
  24. input.file-input(
  25. v-on:change="upload()"
  26. type="file"
  27. ref="file"
  28. name="file"
  29. required
  30. )
  31. span.file-cta.button(v-bind:class="{'is-loading': isLoading}")
  32. span.file-icon
  33. i.fas.fa-upload
  34. span.file-label Select a file…
  35. span.file-name {{ file.name }}