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.

62 lines
2.0 KiB

  1. .modallayer#modal-editor-image
  2. .modallayer-content
  3. .columns
  4. .column
  5. h3 Insert Image
  6. .column.is-narrow.editor-modal-load(v-bind:class="{ 'is-active': isLoading }")
  7. span {{ isLoadingText }}
  8. i
  9. .column.is-narrow
  10. .control.is-grouped
  11. p.control
  12. a.button.is-dark.is-outlined(v-on:click="newFolder")
  13. span.icon.is-small: i.fa.fa-folder
  14. span New Folder
  15. .control.has-addons
  16. a.button.is-info.is-outlined(v-on:click="uploadImage")
  17. span.icon.is-small: i.fa.fa-upload
  18. span Upload Image
  19. a.button.is-info.is-outlined(v-on:click="fetchFromUrl")
  20. span.icon.is-small: i.fa.fa-download
  21. span Fetch from URL
  22. .column.is-narrow
  23. .control.is-grouped
  24. p.control
  25. a.button.is-warning.is-outlined(v-on:click="cancel") Cancel
  26. p.control
  27. a.button.is-primary.is-outlined(v-on:click="insertImage") Insert Image
  28. .columns
  29. .column.is-one-quarter(style={'max-width':'350px'})
  30. .box(style={'max-height': '400px', overflow: 'auto', 'overflow-x': 'hidden'})
  31. aside.menu
  32. p.menu-label
  33. | Folders
  34. ul.menu-list
  35. li(v-for="fld in folders")
  36. a(v-on:click="selectFolder(fld)", v-bind:class="{ 'is-active': currentFolder === fld }")
  37. span.icon.is-small: i.fa.fa-folder
  38. span /{{ fld }}
  39. .column
  40. figure.image.is-128x128(v-for="img in images")
  41. img(v-bind:src="'/uploads/t/' + img.thumbpath")
  42. .modal(v-bind:class="{ 'is-active': newFolderShow }")
  43. .modal-background
  44. .modal-container
  45. .modal-content
  46. .card.is-fullwidth
  47. header.card-header
  48. p.card-header-title New Folder
  49. .card-content
  50. .content
  51. label.label Enter the new folder name:
  52. p.control
  53. input.input(type='text', placeholder='folder name', v-model='newFolderName')
  54. span.help.is-danger.is-hidden This folder name is invalid!
  55. footer.card-footer
  56. a.card-footer-item(v-on:click="newFolderDiscard") Discard
  57. a.card-footer-item(v-on:click="newFolderCreate") Create